Innovenergy_trunk/frontend/node_modules/io-ts/es6/Schema.js

15 lines
431 B
JavaScript
Raw Normal View History

import { memoize } from './Schemable';
// -------------------------------------------------------------------------------------
// constructors
// -------------------------------------------------------------------------------------
/**
* @category constructors
* @since 2.2.0
*/
export function make(schema) {
return memoize(schema);
}
export function interpreter(S) {
return function (schema) { return schema(S); };
}