diff --git a/src/utils/types/index.ts b/src/utils/types/index.ts index c619b26..6e374df 100644 --- a/src/utils/types/index.ts +++ b/src/utils/types/index.ts @@ -9,3 +9,5 @@ export type OmitExtends = T & Omit export type ArgumentTypes = F extends (...args: infer A) => any ? A : never + +export type ArrayElement = ArrType extends readonly (infer ElementType)[] ? ElementType : never