UNPKG

jsii

Version:

[![Join the chat at https://cdk.Dev](https://img.shields.io/static/v1?label=Slack&message=cdk.dev&color=brightgreen&logo=slack)](https://cdk.dev) [![Build Status](https://github.com/aws/jsii-compiler/workflows/build/badge.svg)](https://github.com/aws/jsii

11 lines 584 B
import * as spec from '@jsii/spec'; import { TypeResolver } from './type-reference'; /** * Check if subType is an allowed covariant subtype to superType * * This is not a generic check for subtypes or covariance, but a specific implementation * that checks the currently allowed conditions for class covariance. * In practice, this is driven by C# limitations. */ export declare function isAllowedCovariantSubtype(subType: spec.TypeReference | undefined, superType: spec.TypeReference | undefined, dereference: TypeResolver): boolean; //# sourceMappingURL=type-analysis.d.ts.map