Skip to content

createPrivateInstanceMemberSymbol

import { createPrivateInstanceMemberSymbol } from "@alloy-js/typescript";
function createPrivateInstanceMemberSymbol(name: string | Namekey, options?: CreateTsSymbolOptions): TSOutputSymbol;
namestring | Namekey
optionsoptional CreateTsSymbolOptions
aliasTargetoptional OutputSymbolThe symbol this symbol is an alias for.
binderoptional BinderThe 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 for the full implementation protocol.
defaultoptional boolean
exportoptional boolean
hasInstanceMembersoptional boolean
ignoreNameConflictoptional booleanWhether 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.
ignoreNamePolicyoptional booleanWhether 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.
lazyMemberInitializeroptional () => voidProvide 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.
metadataoptional Record<string, unknown>Arbitrary metadata about this symbol.
namePolicyoptional NamePolicyGetterWhen provided, this symbol will be named according to the provided name policy.
refkeysoptional Refkey | Refkey[]The refkey or refkeys associated with this symbol.
transientoptional booleanWhether this symbol is transient.
tsFlagsoptional TSSymbolFlags
typeoptional OutputSymbol | Ref<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.
TSOutputSymbol