Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/jsii-reflect/lib/type-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export const JSII_REFLECT_SUPPORTED_ASSEMBLY_FEATURES: JsiiFeature[] = [
'class-covariant-overrides',
];

/**
* All supported features as a type
*/
export type JsiiReflectSupportedAssemblyFeatures =
(typeof JSII_REFLECT_SUPPORTED_ASSEMBLY_FEATURES)[number];

export class TypeSystem {
/**
* The "root" assemblies (ones that loaded explicitly via a "load" call).
Expand Down Expand Up @@ -368,7 +374,7 @@ export class TypeSystem {
private loadAssembly(
file: string,
validate = true,
supportedFeatures?: JsiiFeature[],
supportedFeatures?: JsiiReflectSupportedAssemblyFeatures[],
) {
validateFeatureSubset(supportedFeatures);
const contents = loadAssemblyFromFile(file, validate, supportedFeatures);
Expand Down
Loading