UNPKG

@frsource/tiny-carousel-core

Version:

Core module for @frsource/tiny-carousel, based on CSS scroll snap feature 🚀

7 lines (6 loc) • 497 B
// eslint-disable-next-line @typescript-eslint/ban-types export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T); // eslint-disable-next-line @typescript-eslint/no-explicit-any export type OmitFirstItem<F> = F extends [_: any, ...args: infer P] ? P : never; // eslint-disable-next-line @typescript-eslint/no-explicit-any export type OmitFirstArg<F extends (...args: any) => any> = (..._: OmitFirstItem<Parameters<F>>)=> ReturnType<F>