/** * @name HOOK * @author Fajar Rizky Hidayat */ export type EventSend = { ctr?: AbortController; scenario?: string; params?: Record; data?: (scenario?: string | boolean) => Partial; keys?: (scenario?: boolean | string) => { name: string; keys: string[] }[]; parser?: (value: any) => void; }; type FixArr = T extends readonly any[] ? Omit> : T; type DropInitDot = T extends `.${infer U}` ? U : T; type _DeepKeys = T extends object ? { [K in (string | number) & keyof T]: `${ | `.${K}` | (`${K}` extends `${number}` ? `.${K}` : never)}${ | "" | _DeepKeys>}`; }[(string | number) & keyof T] : never; export type DeepKeys = DropInitDot<_DeepKeys>>; export { default as UseMutation, UseMutationProps } from "./useMutation"; export { default as UseTable, UseTablePagination, UseTablePaginationProps, } from "./useTable"; export { default as UseFetch } from "./useFetch"; export { default as UseSvalidation } from "./useSValidation";