Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/structs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function any(): Struct<any, null> {
* and it is preferred to using `array(any())`.
*/

export function array<T extends Struct<any>>(Element: T, isReadonly: true): Struct<ReadonlyArray<Infer<T>>, T>
export function array<T extends Struct<any>>(Element: T): Struct<Infer<T>[], T>
export function array(): Struct<unknown[], undefined>
export function array<T extends Struct<any>>(Element?: T): any {
Expand Down