Skip to content

no-any-export

Check for excessive any types in declaration files

PropertyValue
Rule IDtypes/no-any-export
Categorytypes
Severity🟡 warning
FixableNo

What it Checks

Declaration files with excessive any types provide poor type safety for consumers. This rule flags packages where more than 50% of exports use any.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "types/no-any-export"

Or in tspub.config.ts:

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

Released under the MIT License.