Skip to content

eslint/rules/library ​

Library: the sources of a library, whose generic API may write any (a constructor type) and void in a union (a callback returning T | void). Using an any value stays an error (no-unsafe-*).

2 rules, 0 on. Source: lint/eslint/rules/library.mjs.

RuleSettingFilesWhat it checksWhy
@typescript-eslint/no-explicit-anyoffsrc/**/*.ts—Off: a generic API may need any: new (...parameters: any[]) => T.
@typescript-eslint/no-invalid-void-typeoffsrc/**/*.ts—Off: a callback type may return T | void.

Generated from the JSDoc of the sources.