Skip to content

Commit f05492d

Browse files
committed
feat: declare support for new feature class-covariant-overrides
1 parent 4ee24e1 commit f05492d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@jsii/spec/src/assembly.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ export function describeTypeReference(type?: TypeReference): string {
10821082
/**
10831083
* Predefined constants for a set of jsii extension features
10841084
*/
1085-
export type JsiiFeature = 'intersection-types';
1085+
export type JsiiFeature = 'intersection-types' | 'class-covariant-overrides';
10861086

10871087
/**
10881088
* For every feature, is it enforced by the type system?
@@ -1096,6 +1096,7 @@ export type JsiiFeature = 'intersection-types';
10961096
*/
10971097
const IS_FEATURE_TYPESYSTEM_ENFORCED: Record<JsiiFeature, boolean> = {
10981098
'intersection-types': true,
1099+
'class-covariant-overrides': false,
10991100
};
11001101

11011102
/**

0 commit comments

Comments
 (0)