createMemberSymbol
import { createMemberSymbol } from "@alloy-js/typescript";
function createMemberSymbol(name: string, locationOptions: { jsPrivate?: boolean; static?: boolean;}, options?: CreateTsSymbolOptions): TSOutputSymbol;
Parameters
Section titled “Parameters”name |
|
locationOptions |
|
options | optional
|
Options
Section titled “Options”aliasTarget | optionalMemberDeclaration context interface The symbol this symbol is an alias for. |
binder | optionalBinder context interface 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. |
default | optionalboolean |
export | optionalboolean |
hasInstanceMembers | optionalboolean |
ignoreNameConflict | optionalboolean 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. |
ignoreNamePolicy | optionalboolean 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. |
metadata | optionalRecord<string, unknown> Arbitrary metadata about this symbol. |
namePolicy | optionalNamePolicyGetter When provided, this symbol will be named according to the provided name policy. |
refkeys | optionalRefkey | Refkey[] The refkey or refkeys associated with this symbol. |
transient | optionalboolean Whether this symbol is transient. |
tsFlags | optionalTSSymbolFlags |
type | optionalMemberDeclaration context interface | Ref<MemberDeclaration context interface | 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. |
Returns
Section titled “Returns”[unresolved link]