MCPcopy Create free account
hub / github.com/CommE2E/comm / assertWithValidator

Function assertWithValidator

lib/utils/validation-utils.js:120–123  ·  view source on GitHub ↗
(data: mixed, validator: TType<T>)

Source from the content-addressed store, hash-verified

118]);
119
120function assertWithValidator<T>(data: mixed, validator: TType<T>): T {
121 invariant(validator.is(data), "data isn't of type T");
122 return (data: any);
123}
124
125const ashoatKeyserverID = '256';
126

Callers 15

checkInputValidatorFunction · 0.90
jsonHandlerFunction · 0.90
assignMultipleHoldersFunction · 0.90
removeMultipleHoldersFunction · 0.90
convertObjectFunction · 0.90
useFetchFarcasterInboxFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected