@frsource/tiny-carousel-core
Version:
Core module for @frsource/tiny-carousel, based on CSS scroll snap feature 🚀
6 lines (5 loc) • 349 B
TypeScript
export declare type DeepPartial<T> = T extends Function ? T : (T extends object ? {
[P in keyof T]?: DeepPartial<T[P]>;
} : T);
export declare type OmitFirstItem<F> = F extends [_: any, ...args: infer P] ? P : never;
export declare type OmitFirstArg<F extends (...args: any) => any> = (..._: OmitFirstItem<Parameters<F>>) => ReturnType<F>;