UNPKG

2.33 kBTypeScriptView Raw
1import * as spec from '@jsii/spec';
2import * as ts from 'typescript';
3export declare function setRelatedNode<T, N extends ts.Node = ts.Node>(object: T, node: N | undefined): T;
4export declare const setClassRelatedNode: (object: spec.ClassType, node: ts.ClassDeclaration | undefined) => spec.ClassType;
5export declare const setEnumRelatedNode: (object: spec.EnumType, node: ts.EnumDeclaration | undefined) => spec.EnumType;
6export declare const setInterfaceRelatedNode: (object: spec.InterfaceType, node: ts.InterfaceDeclaration | undefined) => spec.InterfaceType;
7export declare const setMethodRelatedNode: <T extends ts.MethodDeclaration | ts.MethodSignature>(object: spec.Method, node: T | undefined) => spec.Method;
8export declare const setParameterRelatedNode: (object: spec.Parameter, node: ts.ParameterDeclaration | undefined) => spec.Parameter;
9export declare const setPropertyRelatedNode: (object: spec.Property, node: ts.AccessorDeclaration | ts.ParameterPropertyDeclaration | ts.PropertyDeclaration | ts.PropertySignature | undefined) => spec.Parameter;
10export declare function getRelatedNode<T extends ts.Node = ts.Node>(object: any): T | undefined;
11export declare const getClassRelatedNode: (object: spec.ClassType) => ts.ClassDeclaration | undefined;
12export declare const getClassOrInterfaceRelatedNode: (object: spec.ClassType | spec.InterfaceType) => ts.ClassDeclaration | ts.InterfaceDeclaration | undefined;
13export declare const getEnumRelatedNode: (object: spec.EnumType) => ts.EnumDeclaration | undefined;
14export declare const getInterfaceRelatedNode: (object: spec.InterfaceType) => ts.InterfaceDeclaration | undefined;
15export declare const getMethodRelatedNode: (object: spec.Method) => ts.MethodDeclaration | ts.MethodSignature | undefined;
16export declare const getParameterRelatedNode: (object: spec.Parameter) => ts.AccessorDeclaration | ts.ParameterPropertyDeclaration | ts.PropertyDeclaration | ts.PropertySignature | undefined;
17export declare const getPropertyRelatedNode: (object: spec.Parameter) => ts.AccessorDeclaration | ts.ParameterPropertyDeclaration | ts.PropertyDeclaration | ts.PropertySignature | undefined;
18export declare const getTypeRelatedNode: (object: spec.Type) => ts.ClassDeclaration | ts.EnumDeclaration | ts.InterfaceDeclaration | undefined;
19//# sourceMappingURL=node-bindings.d.ts.map
\No newline at end of file