UNPKG

@modular-forms/react

Version:

The modular and type-safe form library for React

10 lines (9 loc) 360 B
/** * Filters the options object from the arguments and returns it. * * @param arg1 Maybe the options object. * @param arg2 Maybe the options object. * * @returns The options object. */ export declare function getOptions<TName extends string, TOptions extends Record<string, any>>(arg1?: TName | TName[] | TOptions, arg2?: TOptions): Partial<TOptions>;