no-unknown-parameters
ErrorErrorUse concrete parameter types. Avoid unknown, dynamic and Object. TypeScript allows cause and type-predicate parameters; Dart allows operator ==.
function handle(input: unknown) {}const handle = (input: unknown | string) => input;class Store { public set(key: string, value?: unknown) {}}function save(user: User) {}function isUser(value: unknown): value is User { return UserSchema.safeParse(value).success;}function assertUser(value: unknown): asserts value is User {}class ApplicationError extends Error { constructor(message: string, cause: unknown) { super(message, { cause }); }}function parse(values: Array<unknown>) {}void handle(dynamic input) {}void handle(Object? input) {}void handle({required Object input}) {}void save(User user) {}class User { @override bool operator ==(Object other) => other is User;}How to fix
Parse the input where it enters the program and pass the parsed type along.
A parameter can be unknown if it is named cause or belongs to an assertion function or a function with a type predicate (value is User).
How to fix
Parse the input where it enters the program and pass the parsed type along. operator ==(Object other) is allowed.