Skip to content

declaration

Check that declaration is enabled in tsconfig

PropertyValue
Rule IDtypes/declaration
Categorytypes
Severity:blue_circle: info
FixableNo

What it Checks

The declaration compiler option generates .d.ts files. Without it, your package won't have type declarations.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "types/declaration"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "types/declaration": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.