@cleverbrush/schema 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builders/AnySchemaBuilder.d.ts +1 -1
- package/dist/builders/ArraySchemaBuilder.d.ts +1 -1
- package/dist/builders/BooleanSchemaBuilder.d.ts +2 -2
- package/dist/builders/DateSchemaBuilder.d.ts +1 -3
- package/dist/builders/FunctionSchemaBuilder.d.ts +1 -1
- package/dist/builders/UnionSchemaBuilder.d.ts +1 -1
- package/package.json +2 -2
|
@@ -72,5 +72,5 @@ export declare class AnySchemaBuilder<TRequired extends boolean = true, TExplici
|
|
|
72
72
|
* // { someProp: 123 } - valid
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
export declare const any: () => AnySchemaBuilder<true
|
|
75
|
+
export declare const any: () => AnySchemaBuilder<true>;
|
|
76
76
|
export {};
|
|
@@ -109,5 +109,5 @@ export declare class ArraySchemaBuilder<TElementSchema extends SchemaBuilder<any
|
|
|
109
109
|
* // undefined - invalid
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
|
-
export declare const array: <TElementSchema extends SchemaBuilder<any, any>>(elementSchema?: TElementSchema) => ArraySchemaBuilder<TElementSchema, true
|
|
112
|
+
export declare const array: <TElementSchema extends SchemaBuilder<any, any>>(elementSchema?: TElementSchema) => ArraySchemaBuilder<TElementSchema, true>;
|
|
113
113
|
export {};
|
|
@@ -58,7 +58,7 @@ export declare class BooleanSchemaBuilder<TResult = boolean, TRequired extends b
|
|
|
58
58
|
/**
|
|
59
59
|
* Restricts object to be equal to `value`.
|
|
60
60
|
*/
|
|
61
|
-
equals<T extends boolean>(value: T): BooleanSchemaBuilder<T, TRequired, TExplicitType
|
|
61
|
+
equals<T extends boolean>(value: T): BooleanSchemaBuilder<T, TRequired, TExplicitType>;
|
|
62
62
|
/**
|
|
63
63
|
* Removes a `value` defeined by `equals()` call.
|
|
64
64
|
*/
|
|
@@ -67,5 +67,5 @@ export declare class BooleanSchemaBuilder<TResult = boolean, TRequired extends b
|
|
|
67
67
|
/**
|
|
68
68
|
* Creates a `boolean` schema.
|
|
69
69
|
*/
|
|
70
|
-
export declare const boolean: () => BooleanSchemaBuilder<boolean, true
|
|
70
|
+
export declare const boolean: () => BooleanSchemaBuilder<boolean, true>;
|
|
71
71
|
export {};
|
|
@@ -57,5 +57,5 @@ export declare class FunctionSchemaBuilder<TRequired extends boolean = true, TEx
|
|
|
57
57
|
* Creates a `function` schema.
|
|
58
58
|
* @retuns {@link FunctionSchemaBuilder}
|
|
59
59
|
*/
|
|
60
|
-
export declare const func: () => FunctionSchemaBuilder<true
|
|
60
|
+
export declare const func: () => FunctionSchemaBuilder<true>;
|
|
61
61
|
export {};
|
|
@@ -129,5 +129,5 @@ export declare class UnionSchemaBuilder<TOptions extends readonly SchemaBuilder<
|
|
|
129
129
|
* Creates a union schema.
|
|
130
130
|
* @param schema required and will be considered as a first option for the union shchema.
|
|
131
131
|
*/
|
|
132
|
-
export declare const union: <T extends SchemaBuilder<any, any>>(schema: T) => UnionSchemaBuilder<[T]
|
|
132
|
+
export declare const union: <T extends SchemaBuilder<any, any>>(schema: T) => UnionSchemaBuilder<[T]>;
|
|
133
133
|
export {};
|