| 543 | |
| 544 | export 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 |