UNPKG

mysterium-tequilapi

Version:
22 lines (20 loc) 631 B
// @flow /** * Flowtype definitions for validation * Generated by Flowgen from a Typescript Definition * Flowgen v1.5.8 * Author: [Joar Wilk](http://twitter.com/joarwilk) * Repo: http://github.com/joarwilk/flowgen */ declare interface Property { name: string; type: "number" | "string" | "object" | "array"; } declare function validate(typeName: string, obj: any, property: Property): void; declare function validateMultiple( typeName: string, obj: any, properties: Property[] ): void; declare function validateArray(typeName: string, arr: any): void; declare export { validateMultiple, validateArray, validate };