tsbuffer-schema
Advanced tools
Comparing version 2.2.0-dev.0 to 2.2.0-dev.1
/*! | ||
* TSBuffer Schema v2.2.0-dev.0 | ||
* TSBuffer Schema v2.2.0-dev.1 | ||
* ----------------------------------------- | ||
@@ -21,3 +21,3 @@ * MIT LICENSE | ||
export declare interface AnyTypeSchema { | ||
type: 'Any'; | ||
type: SchemaType.Any; | ||
} | ||
@@ -38,3 +38,3 @@ | ||
export declare interface ArrayTypeSchema { | ||
type: 'Array'; | ||
type: SchemaType.Array; | ||
elementType: TSBufferSchema; | ||
@@ -58,3 +58,3 @@ } | ||
export declare interface BooleanTypeSchema { | ||
type: 'Boolean'; | ||
type: SchemaType.Boolean; | ||
} | ||
@@ -72,3 +72,3 @@ | ||
export declare interface BufferTypeSchema { | ||
type: 'Buffer'; | ||
type: SchemaType.Buffer; | ||
/** | ||
@@ -84,3 +84,3 @@ * 有该字段,代表类型为该字段对应的TypedArray,否则该字段为ArrayBuffer | ||
export declare interface CustomTypeSchema { | ||
type: 'Custom'; | ||
type: SchemaType.Custom; | ||
/** Custom validate method */ | ||
@@ -125,3 +125,3 @@ validate: (value: any) => { | ||
export declare interface DateTypeSchema { | ||
type: 'Date'; | ||
type: SchemaType.Date; | ||
} | ||
@@ -153,3 +153,3 @@ | ||
export declare interface EnumTypeSchema { | ||
type: 'Enum'; | ||
type: SchemaType.Enum; | ||
members: { | ||
@@ -177,3 +177,3 @@ /** Encoding identifier, generated according to the order */ | ||
export declare interface IndexedAccessTypeSchema { | ||
type: 'IndexedAccess'; | ||
type: SchemaType.IndexedAccess; | ||
objectType: InterfaceTypeSchema | InterfaceReference; | ||
@@ -211,3 +211,3 @@ index: string; | ||
export declare interface InterfaceTypeSchema { | ||
type: 'Interface'; | ||
type: SchemaType.Interface; | ||
/** Extends which interface */ | ||
@@ -250,3 +250,3 @@ extends?: { | ||
export declare interface IntersectionTypeSchema { | ||
type: 'Intersection'; | ||
type: SchemaType.Intersection; | ||
members: { | ||
@@ -281,3 +281,3 @@ /** Encoding identifier, generated according to the order */ | ||
declare interface KeyofTypeSchema { | ||
type: 'Keyof'; | ||
type: SchemaType.Keyof; | ||
target: InterfaceReference; | ||
@@ -304,3 +304,3 @@ } | ||
export declare interface LiteralTypeSchema { | ||
type: 'Literal'; | ||
type: SchemaType.Literal; | ||
literal?: string | number | boolean | null | undefined; | ||
@@ -321,3 +321,3 @@ } | ||
export declare interface NonNullableTypeSchema { | ||
type: 'NonNullable'; | ||
type: SchemaType.NonNullable; | ||
/** 引用目标l */ | ||
@@ -338,3 +338,3 @@ target: TSBufferSchema; | ||
export declare interface NumberTypeSchema { | ||
type: 'Number'; | ||
type: SchemaType.Number; | ||
/** | ||
@@ -363,3 +363,3 @@ * @defaultValue 'double' | ||
export declare interface ObjectTypeSchema { | ||
type: 'Object'; | ||
type: SchemaType.Object; | ||
} | ||
@@ -387,3 +387,3 @@ | ||
export declare interface OmitTypeSchema { | ||
type: 'Omit'; | ||
type: SchemaType.Omit; | ||
target: InterfaceTypeSchema | InterfaceReference | UnionTypeSchema | IntersectionTypeSchema; | ||
@@ -418,3 +418,3 @@ keys: string[]; | ||
export declare interface OverwriteTypeSchema { | ||
type: 'Overwrite'; | ||
type: SchemaType.Overwrite; | ||
target: InterfaceTypeSchema | InterfaceReference; | ||
@@ -431,3 +431,3 @@ overwrite: InterfaceTypeSchema | InterfaceReference; | ||
export declare interface PartialTypeSchema { | ||
type: 'Partial'; | ||
type: SchemaType.Partial; | ||
target: InterfaceTypeSchema | InterfaceReference | UnionTypeSchema | IntersectionTypeSchema; | ||
@@ -442,3 +442,3 @@ } | ||
export declare interface PickTypeSchema { | ||
type: 'Pick'; | ||
type: SchemaType.Pick; | ||
target: InterfaceTypeSchema | InterfaceReference | UnionTypeSchema | IntersectionTypeSchema; | ||
@@ -472,3 +472,3 @@ keys: string[]; | ||
export declare interface ReferenceTypeSchema { | ||
type: 'Reference'; | ||
type: SchemaType.Reference; | ||
/** SchemaID of reference target */ | ||
@@ -511,3 +511,3 @@ target: string; | ||
export declare interface StringTypeSchema { | ||
type: 'String'; | ||
type: SchemaType.String; | ||
} | ||
@@ -561,3 +561,3 @@ | ||
export declare interface TupleTypeSchema { | ||
type: 'Tuple'; | ||
type: SchemaType.Tuple; | ||
elementTypes: TSBufferSchema[]; | ||
@@ -586,3 +586,3 @@ optionalStartIndex?: number; | ||
export declare interface UnionTypeSchema { | ||
type: 'Union'; | ||
type: SchemaType.Union; | ||
members: { | ||
@@ -589,0 +589,0 @@ id: number; |
/*! | ||
* TSBuffer Schema v2.2.0-dev.0 | ||
* TSBuffer Schema v2.2.0-dev.1 | ||
* ----------------------------------------- | ||
@@ -4,0 +4,0 @@ * MIT LICENSE |
{ | ||
"name": "tsbuffer-schema", | ||
"version": "2.2.0-dev.0", | ||
"version": "2.2.0-dev.1", | ||
"description": "TSBuffer schema declarations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20272