MCPcopy Create free account
hub / github.com/Effect-TS/effect / hasPropertySignature

Function hasPropertySignature

packages/effect/src/SchemaAST.ts:3520–3521  ·  view source on GitHub ↗
(input: object, key: PropertyKey)

Source from the content-addressed store, hash-verified

3518
3519// Check own properties first so the name rule only runs for inherited keys.
3520const hasPropertySignature = (input: object, key: PropertyKey): boolean =>
3521 Object.hasOwn(input, key) || (key in input && !requiresOwnProperty(key))
3522
3523/** @internal */
3524export function getCandidateIndex(types: ReadonlyArray<AST>): CandidateIndex {

Callers 1

getCandidateIndexFunction · 0.85

Calls 1

requiresOwnPropertyFunction · 0.85

Tested by

no test coverage detected