In TypeScript how do I limit a param to certain values?

type TransferMethod = 'INSTANT' | 'STANDARD';

Then you set the param to this type: doSomething(param: TransferMethod)