Skip to content

Commit

Permalink
Update arrayable.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
adduserwyw committed Dec 11, 2024
1 parent d32ee16 commit 1ca2e18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/arrayable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ bundle('src/index.js', ['dist/index.cjs', 'dist/index.mjs']);
@category Array
*/
export type Arrayable<T> = T | T[];
export type Arrayable<T> =
T
// Use `readonly T[]` when this issue is resolved: https://github.com/microsoft/TypeScript/issues/17002
| T[];

0 comments on commit 1ca2e18

Please sign in to comment.