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

19 lines 770 B
import * as ts from 'typescript'; /** * Set of silenced warning codes (numeric JSII codes). */ export declare const silencedWarnings: Set<number>; /** * Parse a user-provided warning identifier into numeric JSII codes. * Accepts: "JSII5019", "5019", or a diagnostic name / partial name. * * A name containing `/` must match a full diagnostic name exactly. * A name without `/` matches any diagnostic whose category or specific * name equals the input (e.g. "reserved-word" or "language-compatibility"). */ export declare function parseWarningCodes(input: string): number[]; /** * Check if a diagnostic is a silenced warning (globally or inline). */ export declare function isSilenced(diagnostic: ts.Diagnostic): boolean; //# sourceMappingURL=warnings.d.ts.map