I am looking for a way to make this code below fail.
When I create these In
and Out
types I'd love to have any strings passed into usage
to have to be cast as In
. Is this possible?
type In = string;
type Out = string;
const usage = (x: In): Out => 'meow';
usage('hi');