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

22 lines 896 B
import * as ts from 'typescript'; import { JsiiDiagnostic } from './jsii-diagnostic'; /** * TSDoc-style directives that can be attached to a symbol. */ export declare class Directives { #private; /** * Obtains the `Directives` for a given TypeScript AST node. * * @param node the node for which directives are requested. * @param onDiagnostic a callback invoked whenever a diagnostic message is * emitted when parsing directives. */ static of(node: ts.Node, onDiagnostic: (diag: JsiiDiagnostic) => void): Directives; /** Whether the node has the `@jsii ignore` directive set. */ readonly ignore?: ts.JSDocComment | ts.JSDocTag; /** Whether the node has the `@jsii struct` directive set. */ readonly struct?: ts.JSDocComment | ts.JSDocTag; private constructor(); } //# sourceMappingURL=directives.d.ts.map