UNPKG

jstorm

Version:

JavaScript Storage ORM (Object-Relational Mapper) for LocalStorage and Chrome Storage API

13 lines (12 loc) 432 B
import type { TypeCheckFunc } from "./base"; /** * shapeTypeChecker is a generator function of type checker * with checking each element of the object. * * @param {Record<string, TypeCheckFunc>} validations is a dictionary * to map which TypeCheckFunc is used to which property. * @return {TypeCheckFunc} */ export declare function shapeTypeChecker(validations?: { [key: string]: TypeCheckFunc; }): TypeCheckFunc;