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