no-unknown-returns
ErrorErrorDeclare a concrete return type, not unknown, dynamic, Object or their Promise/Future forms.
function loadUser(): unknown { return input;}async function loadUser(): Promise<unknown> { return fetchUser();}const loadUser = (): PromiseLike<unknown> => fetchUser();function loadUser(): User { return parse(input);}async function loadUser(): Promise<User> { return parse(await fetchUser());}dynamic load() => input;Future<Object?> load() async => input;class Store { Object get value => input;}User load() => User();Future<User> load() async => User();How to fix
Declare the actual return type. Parse values from outside the program before returning them.
How to fix
Declare the actual return type. Parse values from outside the program before returning them.