Comparing version 0.8.0 to 0.8.1
import { Schema } from './schema'; | ||
import { SchemaStore } from './store'; | ||
import { DeepPartial } from './util.js'; | ||
export interface DecodeOptions { | ||
@@ -10,4 +11,4 @@ throw?: boolean; | ||
constructor(schema: Schema<T>, store?: SchemaStore); | ||
create(partials: Partial<T>): T; | ||
create(partials: DeepPartial<T>): T; | ||
decode(value: unknown, options?: DecodeOptions): T; | ||
} |
export declare type DataType = 'string' | 'boolean' | 'number' | 'object' | 'array' | 'any' | 'null'; | ||
export declare function getType(value: unknown): DataType; | ||
export declare function capitalize(str: string): string; | ||
export declare type DeepPartial<T> = { | ||
[P in keyof T]?: DeepPartial<T[P]>; | ||
}; |
{ | ||
"name": "airtight", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Tight subset of JSON schema", | ||
@@ -5,0 +5,0 @@ "main": "out/main/index.js", |
17951
481