@aphro/schema-api
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -160,3 +160,3 @@ export declare type ValidationError = { | ||
description?: string; | ||
isRequired?: boolean; | ||
nullable?: boolean; | ||
}; | ||
@@ -186,6 +186,8 @@ export declare type ID = { | ||
} & FieldBase; | ||
export declare const primitives: readonly ["bool", "int32", "int64", "float32", "float64", "uint32", "uint64", "string", "null"]; | ||
export declare type PrimitiveSubtype = typeof primitives[number]; | ||
declare type Primitive = { | ||
name: string; | ||
type: 'primitive'; | ||
subtype: 'bool' | 'int32' | 'int64' | 'float32' | 'float64' | 'uint32' | 'uint64' | 'string'; | ||
subtype: PrimitiveSubtype; | ||
} & FieldBase; | ||
@@ -238,2 +240,5 @@ declare type MapField = { | ||
type: 'union'; | ||
} | { | ||
type: 'primitive'; | ||
subtype: PrimitiveSubtype; | ||
}; | ||
@@ -240,0 +245,0 @@ declare type Storage = { |
@@ -1,2 +0,12 @@ | ||
export {}; | ||
export const primitives = [ | ||
'bool', | ||
'int32', | ||
'int64', | ||
'float32', | ||
'float64', | ||
'uint32', | ||
'uint64', | ||
'string', | ||
'null', | ||
]; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aphro/schema-api", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -200,3 +200,3 @@ export type ValidationError = { | ||
description?: string; | ||
isRequired?: boolean; | ||
nullable?: boolean; | ||
}; | ||
@@ -232,6 +232,19 @@ | ||
export const primitives = [ | ||
'bool', | ||
'int32', | ||
'int64', | ||
'float32', | ||
'float64', | ||
'uint32', | ||
'uint64', | ||
'string', | ||
'null', | ||
] as const; | ||
export type PrimitiveSubtype = typeof primitives[number]; | ||
type Primitive = { | ||
name: string; | ||
type: 'primitive'; | ||
subtype: 'bool' | 'int32' | 'int64' | 'float32' | 'float64' | 'uint32' | 'uint64' | 'string'; | ||
subtype: PrimitiveSubtype; | ||
} & FieldBase; | ||
@@ -296,3 +309,4 @@ | ||
} | ||
| { type: 'union' }; | ||
| { type: 'union' } | ||
| { type: 'primitive'; subtype: PrimitiveSubtype }; | ||
@@ -299,0 +313,0 @@ type Storage = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
37122
14
555