toi
toi copied to clipboard
Validating `Record` Types?
Is there a way to validate to Record types in TOI? Specifically, how would I define validator such that:
const foo:Record<string,unknown> = validator(bar);
@RobertFischer I'm not sure what kind of Record you're referring to here... but you can even fake a validator function by just casting things as any within it.