UNPKG

896 BTypeScriptView Raw
1import * as ts from 'typescript';
2import { JsiiDiagnostic } from './jsii-diagnostic';
3/**
4 * TSDoc-style directives that can be attached to a symbol.
5 */
6export declare class Directives {
7 #private;
8 /**
9 * Obtains the `Directives` for a given TypeScript AST node.
10 *
11 * @param node the node for which directives are requested.
12 * @param onDiagnostic a callback invoked whenever a diagnostic message is
13 * emitted when parsing directives.
14 */
15 static of(node: ts.Node, onDiagnostic: (diag: JsiiDiagnostic) => void): Directives;
16 /** Whether the node has the `@jsii ignore` directive set. */
17 readonly ignore?: ts.JSDocComment | ts.JSDocTag;
18 /** Whether the node has the `@jsii struct` directive set. */
19 readonly struct?: ts.JSDocComment | ts.JSDocTag;
20 private constructor();
21}
22//# sourceMappingURL=directives.d.ts.map
\No newline at end of file