@sirutils/schema
Advanced tools
Comparing version 0.2.3 to 0.2.4
import { type BlobType, ProjectError } from '@sirutils/core'; | ||
export declare const createSyncSchema: <const S extends Sirutils.Schema.ValidationSchema<BlobType>>(schema: S) => (value: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>> extends infer T ? { [KeyType in keyof T]: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>>[KeyType]; } : never) => import("@sirutils/core").Result<true, ProjectError>; | ||
export declare const createAsyncSchema: <const S extends Sirutils.Schema.ValidationSchema<BlobType>>(schema: S) => (value: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>> extends infer T ? { [KeyType in keyof T]: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>>[KeyType]; } : never) => import("@sirutils/core").ResultAsync<true, ProjectError>; | ||
export declare const createSyncSchema: <const S extends Sirutils.Schema.ValidationSchema<BlobType>>(schema: S) => (value: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>> extends infer T ? { [KeyType in keyof T]: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>>[KeyType]; } : never) => import("neverthrow").Result<true, ProjectError>; | ||
export declare const createAsyncSchema: <const S extends Sirutils.Schema.ValidationSchema<BlobType>>(schema: S) => (value: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>> extends infer T ? { [KeyType in keyof T]: Sirutils.Schema.Mutable<Sirutils.Schema.UndefinedToOptional<Sirutils.Schema.ExtractSchemaType<S>>>[KeyType]; } : never) => import("neverthrow").ResultAsync<true, ProjectError>; | ||
export declare const syncSchema: <const S extends Sirutils.Schema.ValidationSchema<BlobType>>(schema: S) => (value: S) => true; | ||
export declare const asyncSchema: <const S extends Sirutils.Schema.ValidationSchema<BlobType>>(schema: S) => (value: S) => Promise<true>; | ||
//# sourceMappingURL=create.d.ts.map |
{ | ||
"name": "@sirutils/schema", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"type": "module", | ||
@@ -21,8 +21,8 @@ "files": [ | ||
"devDependencies": { | ||
"@sirutils/builder": "0.2.3" | ||
"@sirutils/builder": "0.2.4" | ||
}, | ||
"dependencies": { | ||
"fastest-validator": "^1.19.0", | ||
"@sirutils/core": "0.2.3" | ||
"@sirutils/core": "0.2.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
30848
+ Added@sirutils/core@0.2.4(transitive)
- Removed@sirutils/core@0.2.3(transitive)
Updated@sirutils/core@0.2.4