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) [![All Contributors](https://img.shields.io/github/all-contributors/aws/jsii/main?label=%E2%9C%A8%20All%20Con

20 lines 980 B
import * as spec from '@jsii/spec'; /** * Convert a type reference to a string */ export declare function typeReferenceToString(x: spec.TypeReference): string; /** * Return whether the given type references are equal */ export declare function typeReferenceEqual(a: spec.TypeReference, b: spec.TypeReference): boolean; export type TypeResolver = (typeRef: string | spec.NamedTypeReference) => spec.Type | undefined; /** * Creates a type resolver function for a given context (assembly + dependency closure). */ export declare function createTypeResolver(assembly: spec.Assembly, dependencyClosure: readonly spec.Assembly[]): TypeResolver; /** * Resolve a type from a name to the actual type. * Uses a given assembly and dependency closure for lookup. */ export declare function resolveType(typeRef: string | spec.NamedTypeReference, assembly: spec.Assembly, dependencyClosure: readonly spec.Assembly[]): spec.Type | undefined; //# sourceMappingURL=type-reference.d.ts.map