Add explicit type to firstOrNull that depends on the array it receives, so it can infer the correct type: export const firstOrNull: <T>(arr: ...
確定! 回上一頁