import { UnreachableCaseError } from "../lib/functions" ; import { DummyOptions } from "./types" ; function actOnDummyOptions ( options ) { switch ( options ) { case "open" : return "it's open!" ; case "closed" : return "it's closed" ; case "unknown" : return "i have no idea" ; default : throw new UnreachableCaseError ( options ) ; } }