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

Function tString

lib/utils/validation-utils.js:32–34  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

30}
31
32function tString<T: string>(value: T): TIrreducible<T> {
33 return t.irreducible(`'${value}'`, x => x === value);
34}
35
36function tNumber<T: number>(value: T): TIrreducible<T> {
37 return t.irreducible(value.toString(), x => x === value);

Calls

no outgoing calls

Tested by

no test coverage detected