UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

17 lines (16 loc) 581 B
import { ViewModel } from '../types/types'; export type ViewModelUpdateOptions = { partial: boolean; metadataCheck: boolean; externalUserIdCheck: boolean; }; /** * @description Set the viewModel for the form or reset it by passing an empty object */ export declare const setViewModel: (newViewModel: ViewModel | {}, options?: Partial<ViewModelUpdateOptions>) => void; /** * Schedule, or immediately perform a viewModel reset. * Resets fieldValidationErrors and previousViewModel as well. * @todo Return promise */ export declare const resetViewModel: () => void;