diff options
| author | Shinigami <[email protected]> | 2023-02-15 19:29:44 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-15 18:29:44 +0000 |
| commit | e7230f6f10af9633cf0eca18910cbafaaba9ecba (patch) | |
| tree | 60c27d30661f85b8ec2155e8a2f39ffdb8559f63 /src/utils/types.ts | |
| parent | 1399375686afb99a4ea55a6153601905f395304d (diff) | |
| download | faker-e7230f6f10af9633cf0eca18910cbafaaba9ecba.tar.xz faker-e7230f6f10af9633cf0eca18910cbafaaba9ecba.zip | |
chore: activate noImplicitAny (#1839)
Diffstat (limited to 'src/utils/types.ts')
| -rw-r--r-- | src/utils/types.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts index 012ad58b..afc4c17a 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -8,11 +8,16 @@ export type LiteralUnion<T extends U, U = string> = | (U & { zz_IGNORE_ME?: never }); /** - * Basically a function that returns a value. + * A function that returns a value. * - * For some strange reason this is not the same as `Function`. + * `Function` cannot be used instead because it doesn't accept class declarations. + * These would fail when invoked since they are invoked without the `new` keyword. */ -export type Callable = (...args) => unknown; +export type Callable = ( + // TODO christopher 2023-02-14: This `any` type can be fixed by anyone if they want to. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ...args: any[] +) => unknown; /** * Type that represents a single method/function name of the given type. |
