MCPcopy
hub / github.com/arktypeio/arktype / ambientAttachments

Method ambientAttachments

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

Source from the content-addressed store, hash-verified

201
202export class InternalScope<$ extends {} = {}> extends BaseScope<$> {
203 get ambientAttachments(): Ark.boundTypeAttachments<$> | undefined {
204 if (!$arkTypeRegistry.typeAttachments) return
205 return this.cacheGetter(
206 "ambientAttachments",
207 flatMorph($arkTypeRegistry.typeAttachments, (k, v) => [
208 k,
209 this.bindReference(v as {} as BaseRoot | GenericRoot)
210 ]) as never
211 )
212 }
213
214 protected preparseOwnAliasEntry(alias: string, def: unknown): AliasDefEntry {
215 const firstParamIndex = alias.indexOf("<")

Callers

nothing calls this directly

Calls 2

flatMorphFunction · 0.90
cacheGetterMethod · 0.80

Tested by

no test coverage detected