Skip to content

Commit

Permalink
feat(type): ArrayItems
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Mar 16, 2023
1 parent c3d2a86 commit 4f20d8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/type/src/type-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ export interface StringifyableRecord {
export type Prop<T, K> = K extends keyof T ? T[K] : never;

export type Values<T> = T[keyof T];
export type ArrayItems<T> = T extends Array<infer K> ? K : T;

export type Merge<M, N> = Omit<M, keyof N> & N;

0 comments on commit 4f20d8a

Please sign in to comment.