UNPKG

remix-validated-form

Version:

Form component and utils for easy form validation in remix

10 lines (9 loc) 362 B
/** * This is basically what `atomFamily` from jotai does, * but it doesn't make sense to include the entire jotai library just for that api. */ export declare type InternalFormId = string | symbol; export declare const storeFamily: <T>(create: (formId: InternalFormId) => T) => { (formId: InternalFormId): T; remove(formId: InternalFormId): void; };