MCPcopy Create free account
hub / github.com/arktypeio/arktype / patternFacts

Function patternFacts

ark/type/deferred.ts:560–564  ·  view source on GitHub ↗
(rule: string, flags: string)

Source from the content-addressed store, hash-verified

558
559// what its node holds, sized since a source is whatever's written
560const patternFacts = (rule: string, flags: string): Facts => ({
561 key: `/${sized(rule)}/${flags}`,
562 domains: stringBits,
563 pure: true
564})
565
566// a subclass says what it likes of its source and flags, or throws
567const regexFacts = (v: RegExp): Facts | undefined =>

Callers 2

regexFactsFunction · 0.85
regexLiteralFactsFunction · 0.85

Calls 1

sizedFunction · 0.85

Tested by

no test coverage detected