@milson/schema
Advanced tools
| import { MilsonGlobalSchema } from "./Global"; | ||
| export declare class MilsonArraySchema extends MilsonGlobalSchema { | ||
| interface MilsonArraySchemaAttributes { | ||
| schemaValue?: MilsonGlobalSchema; | ||
| } | ||
| export declare class MilsonArraySchema extends MilsonGlobalSchema implements MilsonArraySchemaAttributes { | ||
| schemaValue?: MilsonGlobalSchema; | ||
| constructor(milsonSchema: MilsonGlobalSchema); | ||
| schema(milsonSchema: MilsonGlobalSchema): this; | ||
| } | ||
| export {}; |
| import { MilsonGlobalSchema } from "./Global"; | ||
| export declare class MilsonBooleanSchema extends MilsonGlobalSchema { | ||
| interface MilsonBooleanSchemaAttributes { | ||
| } | ||
| export declare class MilsonBooleanSchema extends MilsonGlobalSchema implements MilsonBooleanSchemaAttributes { | ||
| constructor(); | ||
| } | ||
| export {}; |
| import { MilsonCoreTypes } from "../types"; | ||
| export declare class MilsonGlobalSchema { | ||
| interface MilsonGlobalSchemaAttributes { | ||
| type: MilsonCoreTypes; | ||
| isRequired: boolean; | ||
| existInEnum?: object; | ||
| } | ||
| export declare class MilsonGlobalSchema implements MilsonGlobalSchemaAttributes { | ||
| type: MilsonCoreTypes; | ||
| isRequired: boolean; | ||
| existInEnum?: object; | ||
| constructor(type: MilsonCoreTypes); | ||
@@ -10,1 +15,2 @@ required(): this; | ||
| } | ||
| export {}; |
| import { MilsonGlobalSchema } from "./Global"; | ||
| export declare class MilsonNumberSchema extends MilsonGlobalSchema { | ||
| interface MilsonNumberSchemaAttributes { | ||
| } | ||
| export declare class MilsonNumberSchema extends MilsonGlobalSchema implements MilsonNumberSchemaAttributes { | ||
| constructor(); | ||
| } | ||
| export {}; |
@@ -11,6 +11,10 @@ import { MilsonGlobalSchema } from "./Global"; | ||
| }; | ||
| export declare class MilsonObjectSchema<T = unknown> extends MilsonGlobalSchema { | ||
| interface MilsonObjectSchemaAttributes<T> { | ||
| schemaValue?: ObjectSchema<T>; | ||
| } | ||
| export declare class MilsonObjectSchema<T = unknown> extends MilsonGlobalSchema implements MilsonObjectSchemaAttributes<T> { | ||
| schemaValue?: ObjectSchema<T>; | ||
| constructor(createMilsonObject: CreateMilsonObject<T>); | ||
| schema(createMilsonObject: CreateMilsonObject<T>): this; | ||
| } | ||
| export {}; |
| import { MilsonGlobalSchema } from "./Global"; | ||
| export declare class MilsonStringSchema extends MilsonGlobalSchema { | ||
| interface MilsonStringSchemaAttributes { | ||
| } | ||
| export declare class MilsonStringSchema extends MilsonGlobalSchema implements MilsonStringSchemaAttributes { | ||
| constructor(); | ||
| } | ||
| export {}; |
+1
-1
| { | ||
| "name": "@milson/schema", | ||
| "version": "1.0.12", | ||
| "version": "1.0.13", | ||
| "description": "A schema to type your data and use with @milson libs", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
10577
7.57%253
10%