@alloy-js/typescript 0.26.0 → 0.27.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/docs/api/components/ArrowFunction.md +16 -14
  2. package/docs/api/components/BarrelFile.md +3 -3
  3. package/docs/api/components/BlockScope.md +10 -4
  4. package/docs/api/components/CallSignature.md +11 -11
  5. package/docs/api/components/CaseClause.md +9 -3
  6. package/docs/api/components/CatchClause.md +6 -6
  7. package/docs/api/components/ClassDeclaration.md +34 -5
  8. package/docs/api/components/ClassField.md +16 -17
  9. package/docs/api/components/ClassMember.md +14 -14
  10. package/docs/api/components/ClassMethod.md +24 -25
  11. package/docs/api/components/Declaration.md +19 -15
  12. package/docs/api/components/EnumDeclaration.md +32 -4
  13. package/docs/api/components/EnumMember.md +10 -10
  14. package/docs/api/components/FunctionDeclaration.md +39 -14
  15. package/docs/api/components/FunctionExpression.md +16 -14
  16. package/docs/api/components/InterfaceDeclaration.md +33 -7
  17. package/docs/api/components/InterfaceMember.md +18 -14
  18. package/docs/api/components/InterfaceMethod.md +22 -20
  19. package/docs/api/components/MemberExpression.md +6 -1
  20. package/docs/api/components/ObjectExpression.md +3 -3
  21. package/docs/api/components/ObjectProperty.md +10 -10
  22. package/docs/api/components/PackageDirectory.md +26 -48
  23. package/docs/api/components/PackageJsonFile.md +3 -9
  24. package/docs/api/{types/ReferenceProps.md → components/Reference.md} +20 -2
  25. package/docs/api/components/SourceFile.md +3 -3
  26. package/docs/api/components/TypeRefContext.md +35 -0
  27. package/docs/api/components/VarDeclaration.md +35 -9
  28. package/docs/api/components/ensureTypeRefContext.md +3 -3
  29. package/docs/api/components/index.md +3 -1
  30. package/docs/api/contexts/Package-context.md +1 -1
  31. package/docs/api/contexts/PackageMetadata-context.md +1 -1
  32. package/docs/api/contexts/SourceFile-context.md +1 -1
  33. package/docs/api/contexts/index.md +3 -3
  34. package/docs/api/functions/createInstanceMemberSymbol.md +21 -21
  35. package/docs/api/functions/createMemberSymbol.md +22 -25
  36. package/docs/api/functions/createPackage.md +2 -2
  37. package/docs/api/functions/createPrivateInstanceMemberSymbol.md +21 -21
  38. package/docs/api/functions/createPrivateStaticMemberSymbol.md +21 -21
  39. package/docs/api/functions/createStaticMemberSymbol.md +21 -21
  40. package/docs/api/functions/createTypeAndValueSymbol.md +21 -21
  41. package/docs/api/functions/createTypeSymbol.md +21 -21
  42. package/docs/api/functions/createValueSymbol.md +21 -21
  43. package/docs/api/functions/decl.md +18 -18
  44. package/docs/api/functions/declMember.md +23 -26
  45. package/docs/api/functions/declType.md +18 -18
  46. package/docs/api/index.md +2 -2
  47. package/docs/api/types/ExportConditions.md +3 -3
  48. package/docs/api/types/FunctionParametersProps.md +4 -4
  49. package/docs/api/types/FunctionTypeParametersProps.md +4 -4
  50. package/docs/api/types/MemberExpressionPartProps.md +11 -11
  51. package/docs/api/types/ModuleExports.md +1 -8
  52. package/docs/api/types/NamedMap.md +1 -14
  53. package/docs/api/types/NamedModuleDescriptor.md +6 -6
  54. package/docs/api/types/PackageDescriptor.md +3 -3
  55. package/docs/api/types/PackageExports.md +3 -3
  56. package/docs/api/types/PackageRefkeys.md +1 -6
  57. package/docs/api/types/ParameterDescriptorBase.md +10 -10
  58. package/docs/api/types/TSLexicalScope.md +6 -5
  59. package/docs/api/types/TSMemberScope.md +7 -6
  60. package/docs/api/types/TSModuleScope.md +10 -9
  61. package/docs/api/types/TSOutputSymbol.md +55 -22
  62. package/docs/api/types/TSPackageScope.md +26 -15
  63. package/docs/api/types/TypeDeclarationProps.md +2 -0
  64. package/docs/api/types/TypeParameterDescriptor.md +7 -7
  65. package/docs/api/types/TypeParametersProps.md +4 -4
  66. package/docs/api/types/index.md +5 -7
  67. package/docs/api/variables/FunctionType.md +4 -5
  68. package/docs/api/variables/InterfaceExpression.md +1 -1
  69. package/docs/api/variables/TSSymbolFlags.md +7 -1
  70. package/docs/api/variables/TypeDeclaration.md +1 -1
  71. package/docs/api/variables/index.md +3 -3
  72. package/package.json +7 -9
  73. package/api-extractor.json +0 -16
  74. package/docs/api/types/TypeRefContextProps.md +0 -7
  75. package/temp/api.json +0 -16745
  76. package/tsdoc-metadata.json +0 -11
@@ -4,7 +4,7 @@
4
4
  import { createPackage } from "@alloy-js/typescript";
5
5
 
6
6
 
7
- function createPackage<const T extends PackageDescriptor>(props: CreatePackageProps<T>): PackageRefkeys<T> & SymbolCreator & ExternalPackage;
7
+ function createPackage<T extends PackageDescriptor>(props: CreatePackageProps<T>): (T["."] extends { default: string } ? { default: Refkey } : {}) & (T["."]["named"] extends NamedModuleDescriptor[] ? NamedMap<any[any]> : {}) & { [P in string | number | symbol as P extends "." ? never : P]: ModuleExports<T[P]> } & SymbolCreator & ExternalPackage;
8
8
  ```
9
9
 
10
10
  ## Parameters
@@ -15,4 +15,4 @@ function createPackage<const T extends PackageDescriptor>(props: CreatePackagePr
15
15
 
16
16
  ## Returns
17
17
 
18
- [PackageRefkeys](../../types/packagerefkeys/)\<T> & [SymbolCreator](../../../core/types/symbolcreator/) & [ExternalPackage](../../types/externalpackage/)
18
+ (T\[“.”] extends { default: string } ? { default: [Refkey](../../../core/types/refkey/) } : {}) & (T\[“.”]\[“named”] extends [NamedModuleDescriptor](../../types/namedmoduledescriptor/)\[] ? [NamedMap](../../types/namedmap/)\<any\[any]> : {}) & { \[P in string | number | symbol as P extends “.” ? never : P]: [ModuleExports](../../types/moduleexports/)\<T\[P]> } & [SymbolCreator](../../../core/types/symbolcreator/) & [ExternalPackage](../../types/externalpackage/)
@@ -4,34 +4,34 @@
4
4
  import { createPrivateInstanceMemberSymbol } from "@alloy-js/typescript";
5
5
 
6
6
 
7
- function createPrivateInstanceMemberSymbol(name: string | Namekey, options?: CreateTsSymbolOptions): TSOutputSymbol;
7
+ function createPrivateInstanceMemberSymbol(name: string | Namekey<NamekeyOptions>, options?: CreateTsSymbolOptions): TSOutputSymbol;
8
8
  ```
9
9
 
10
10
  ## Parameters
11
11
 
12
- | | | |
13
- | ------- | ------------------------------ | - |
14
- | name | string \| Namekey | |
15
- | options | optional CreateTsSymbolOptions | |
12
+ | | | |
13
+ | ------- | ---------------------------------- | - |
14
+ | name | string \| Namekey\<NamekeyOptions> | |
15
+ | options | optional CreateTsSymbolOptions | |
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
- | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
- | default | optional boolean | |
24
- | export | optional boolean | |
25
- | hasInstanceMembers | optional boolean | |
26
- | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
- | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
- | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
- | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
- | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
- | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
- | transient | optional boolean | Whether this symbol is transient. |
33
- | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
- | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
19
+ | | | |
20
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
+ | default | optional boolean | |
24
+ | export | optional boolean | |
25
+ | hasInstanceMembers | optional boolean | |
26
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
+ | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
+ | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
+ | transient | optional boolean | Whether this symbol is transient. |
33
+ | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
+ | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined, [OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
35
35
 
36
36
  ## Returns
37
37
 
@@ -4,34 +4,34 @@
4
4
  import { createPrivateStaticMemberSymbol } from "@alloy-js/typescript";
5
5
 
6
6
 
7
- function createPrivateStaticMemberSymbol(name: string | Namekey, options?: CreateTsSymbolOptions): TSOutputSymbol;
7
+ function createPrivateStaticMemberSymbol(name: string | Namekey<NamekeyOptions>, options?: CreateTsSymbolOptions): TSOutputSymbol;
8
8
  ```
9
9
 
10
10
  ## Parameters
11
11
 
12
- | | | |
13
- | ------- | ------------------------------ | - |
14
- | name | string \| Namekey | |
15
- | options | optional CreateTsSymbolOptions | |
12
+ | | | |
13
+ | ------- | ---------------------------------- | - |
14
+ | name | string \| Namekey\<NamekeyOptions> | |
15
+ | options | optional CreateTsSymbolOptions | |
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
- | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
- | default | optional boolean | |
24
- | export | optional boolean | |
25
- | hasInstanceMembers | optional boolean | |
26
- | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
- | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
- | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
- | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
- | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
- | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
- | transient | optional boolean | Whether this symbol is transient. |
33
- | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
- | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
19
+ | | | |
20
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
+ | default | optional boolean | |
24
+ | export | optional boolean | |
25
+ | hasInstanceMembers | optional boolean | |
26
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
+ | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
+ | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
+ | transient | optional boolean | Whether this symbol is transient. |
33
+ | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
+ | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined, [OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
35
35
 
36
36
  ## Returns
37
37
 
@@ -4,34 +4,34 @@
4
4
  import { createStaticMemberSymbol } from "@alloy-js/typescript";
5
5
 
6
6
 
7
- function createStaticMemberSymbol(name: string | Namekey, options?: CreateTsSymbolOptions): TSOutputSymbol;
7
+ function createStaticMemberSymbol(name: string | Namekey<NamekeyOptions>, options?: CreateTsSymbolOptions): TSOutputSymbol;
8
8
  ```
9
9
 
10
10
  ## Parameters
11
11
 
12
- | | | |
13
- | ------- | ------------------------------ | - |
14
- | name | string \| Namekey | |
15
- | options | optional CreateTsSymbolOptions | |
12
+ | | | |
13
+ | ------- | ---------------------------------- | - |
14
+ | name | string \| Namekey\<NamekeyOptions> | |
15
+ | options | optional CreateTsSymbolOptions | |
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
- | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
- | default | optional boolean | |
24
- | export | optional boolean | |
25
- | hasInstanceMembers | optional boolean | |
26
- | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
- | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
- | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
- | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
- | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
- | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
- | transient | optional boolean | Whether this symbol is transient. |
33
- | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
- | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
19
+ | | | |
20
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
+ | default | optional boolean | |
24
+ | export | optional boolean | |
25
+ | hasInstanceMembers | optional boolean | |
26
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
+ | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
+ | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
+ | transient | optional boolean | Whether this symbol is transient. |
33
+ | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
+ | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined, [OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
35
35
 
36
36
  ## Returns
37
37
 
@@ -4,34 +4,34 @@
4
4
  import { createTypeAndValueSymbol } from "@alloy-js/typescript";
5
5
 
6
6
 
7
- function createTypeAndValueSymbol(name: string | Namekey, options?: CreateTsSymbolOptions): TSOutputSymbol;
7
+ function createTypeAndValueSymbol(name: string | Namekey<NamekeyOptions>, options?: CreateTsSymbolOptions): TSOutputSymbol;
8
8
  ```
9
9
 
10
10
  ## Parameters
11
11
 
12
- | | | |
13
- | ------- | ------------------------------ | - |
14
- | name | string \| Namekey | |
15
- | options | optional CreateTsSymbolOptions | |
12
+ | | | |
13
+ | ------- | ---------------------------------- | - |
14
+ | name | string \| Namekey\<NamekeyOptions> | |
15
+ | options | optional CreateTsSymbolOptions | |
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
- | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
- | default | optional boolean | |
24
- | export | optional boolean | |
25
- | hasInstanceMembers | optional boolean | |
26
- | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
- | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
- | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
- | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
- | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
- | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
- | transient | optional boolean | Whether this symbol is transient. |
33
- | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
- | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
19
+ | | | |
20
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
+ | default | optional boolean | |
24
+ | export | optional boolean | |
25
+ | hasInstanceMembers | optional boolean | |
26
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
+ | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
+ | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
+ | transient | optional boolean | Whether this symbol is transient. |
33
+ | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
+ | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined, [OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
35
35
 
36
36
  ## Returns
37
37
 
@@ -4,34 +4,34 @@
4
4
  import { createTypeSymbol } from "@alloy-js/typescript";
5
5
 
6
6
 
7
- function createTypeSymbol(name: string | Namekey, options?: CreateTsSymbolOptions): TSOutputSymbol;
7
+ function createTypeSymbol(name: string | Namekey<NamekeyOptions>, options?: CreateTsSymbolOptions): TSOutputSymbol;
8
8
  ```
9
9
 
10
10
  ## Parameters
11
11
 
12
- | | | |
13
- | ------- | ------------------------------ | - |
14
- | name | string \| Namekey | |
15
- | options | optional CreateTsSymbolOptions | |
12
+ | | | |
13
+ | ------- | ---------------------------------- | - |
14
+ | name | string \| Namekey\<NamekeyOptions> | |
15
+ | options | optional CreateTsSymbolOptions | |
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
- | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
- | default | optional boolean | |
24
- | export | optional boolean | |
25
- | hasInstanceMembers | optional boolean | |
26
- | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
- | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
- | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
- | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
- | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
- | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
- | transient | optional boolean | Whether this symbol is transient. |
33
- | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
- | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
19
+ | | | |
20
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
22
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
23
+ | default | optional boolean | |
24
+ | export | optional boolean | |
25
+ | hasInstanceMembers | optional boolean | |
26
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
27
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
28
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
29
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
30
+ | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
31
+ | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
32
+ | transient | optional boolean | Whether this symbol is transient. |
33
+ | tsFlags | optional[TSSymbolFlags](../../variables/tssymbolflags/) | |
34
+ | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined, [OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
35
35
 
36
36
  ## Returns
37
37