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

Method prop

ark/schema/shared/compile.ts:121–123  ·  view source on GitHub ↗
(key: PropertyKey, optional = false)

Source from the content-addressed store, hash-verified

119 }
120
121 prop(key: PropertyKey, optional = false): string {
122 return compileLiteralPropAccess(key, optional)
123 }
124
125 index(key: string | number, optional = false): string {
126 return indexPropAccess(`${key}`, optional)

Callers 15

ifReadableMethod · 0.80
jsAllowsMethod · 0.80
checksMethod · 0.80
compileMethod · 0.80
compileOwnEnumerablePathFunction · 0.80
compileFunction · 0.80
jsExpressionFunction · 0.80
jsTfMethod · 0.80
copyKeysMethod · 0.80
jsCopyPropsMethod · 0.80
outputOfMethod · 0.80
jsDeleteTransformMethod · 0.80

Calls 1

compileLiteralPropAccessFunction · 0.85

Tested by

no test coverage detected