rune-langium / codegen/src/export / projectCodeListForAlias
Function: projectCodeListForAlias()
ts
function projectCodeListForAlias(alias, resources):
| readonly {
label: string;
value: string;
}[]
| undefined;Defined in: packages/codegen/src/runtime/project-bindings.ts:241
One adapter guard shared by the graph and all resource-aware generators.
Parameters
| Parameter | Type |
|---|---|
alias | RosettaTypeAlias |
resources | | Pick<{ implementationSymbols: { dispatch?: string; kind: string; model: string; name: string; namespace: string; }[]; invokeByKey: (key, args) => unknown; codeList(symbol): | readonly CodeListValue[] | undefined; codeListForType(type): | readonly CodeListValue[] | undefined; implementationStatus(targetId): | { available: boolean; reason: string | undefined; } | undefined; invoke(symbol, args): unknown; validateCode(symbol, value): | { message: string; path: string; } | undefined; }, "codeListForType"> | undefined |
Returns
| readonly { label: string; value: string; }[] | undefined