UNPKG

slate

Version:

A completely customizable framework for building rich text editors.

5 lines 451 B
import { Editor } from '../interfaces/editor'; export type OmitFirstArg<F> = F extends (x: any, ...args: infer P) => infer R ? (...args: P) => R : never; export type OmitFirstArgWithSpecificGeneric<F, TSpecific> = F extends (x: any, ...args: infer P) => infer R ? (...args: P) => R : never; export type WithEditorFirstArg<T extends (...args: any) => any> = (editor: Editor, ...args: Parameters<T>) => ReturnType<T>; //# sourceMappingURL=types.d.ts.map