Skip to content

declaration-completeness

Check that all export subpaths have corresponding .d.ts files

PropertyValue
Rule IDtypes/declaration-completeness
Categorytypes
Severity🟡 warning
FixableNo

What it Checks

Every export subpath should have a matching .d.ts file. Missing declarations mean consumers lose type information for those entry points.

Configuration

Disable this rule:

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

Or in tspub.config.ts:

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

Released under the MIT License.