Argument of type '() => number' is not assignable to parameter of type '(code?: number) => never'. Type 'number' is not assignable to type 'never'. code example
Example: string is not assignable to type never
const result : string[] = [];
const result : string[] = [];