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

Method ambientAttachments

ark/type/scope.ts:545–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

543
544export class InternalScope<$ extends {} = {}> extends BaseScope<$> {
545 get ambientAttachments(): Ark.boundTypeAttachments<$> | undefined {
546 if (
547 !$arkTypeRegistry.typeAttachments ||
548 this.scopeConfig?.ambient !== undefined
549 )
550 return
551 return this.memo(
552 "ambientAttachments",
553 flatMorph(Object.keys($arkTypeRegistry.typeAttachments), (_, k) => [
554 k,
555 this.type[k as never]
556 ]) as never
557 )
558 }
559
560 private keywordConfigOf(qualifiedName: string): TypeMeta | undefined {
561 const { keywords } = this.cfg

Callers

nothing calls this directly

Calls 2

flatMorphFunction · 0.90
memoMethod · 0.45

Tested by

no test coverage detected