@directive-run/core 0.4.1 → 0.4.2
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/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js.map +1 -1
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -346,12 +346,14 @@ declare const t: {
|
|
|
346
346
|
_lastFailedIndex?: number;
|
|
347
347
|
};
|
|
348
348
|
/**
|
|
349
|
-
* Create an object schema type.
|
|
349
|
+
* Create an object schema type for any complex value.
|
|
350
350
|
* Can be used with or without shape validation:
|
|
351
351
|
* - `t.object<User>()` - Type-only, no property validation
|
|
352
352
|
* - `t.object<User>().shape({ name: t.string(), age: t.number() })` - With property validation
|
|
353
|
+
*
|
|
354
|
+
* For arrays, prefer `t.array<T>()` which adds `Array.isArray` validation.
|
|
353
355
|
*/
|
|
354
|
-
object<T
|
|
356
|
+
object<T>(): ChainableSchemaType<T> & {
|
|
355
357
|
shape(schema: { [K in keyof T]?: SchemaType<T[K]>; }): ChainableSchemaType<T> & /*elided*/ any;
|
|
356
358
|
nonNull(): ChainableSchemaType<T> & /*elided*/ any;
|
|
357
359
|
hasKeys(...keys: string[]): ChainableSchemaType<T> & /*elided*/ any;
|
package/dist/index.d.ts
CHANGED
|
@@ -346,12 +346,14 @@ declare const t: {
|
|
|
346
346
|
_lastFailedIndex?: number;
|
|
347
347
|
};
|
|
348
348
|
/**
|
|
349
|
-
* Create an object schema type.
|
|
349
|
+
* Create an object schema type for any complex value.
|
|
350
350
|
* Can be used with or without shape validation:
|
|
351
351
|
* - `t.object<User>()` - Type-only, no property validation
|
|
352
352
|
* - `t.object<User>().shape({ name: t.string(), age: t.number() })` - With property validation
|
|
353
|
+
*
|
|
354
|
+
* For arrays, prefer `t.array<T>()` which adds `Array.isArray` validation.
|
|
353
355
|
*/
|
|
354
|
-
object<T
|
|
356
|
+
object<T>(): ChainableSchemaType<T> & {
|
|
355
357
|
shape(schema: { [K in keyof T]?: SchemaType<T[K]>; }): ChainableSchemaType<T> & /*elided*/ any;
|
|
356
358
|
nonNull(): ChainableSchemaType<T> & /*elided*/ any;
|
|
357
359
|
hasKeys(...keys: string[]): ChainableSchemaType<T> & /*elided*/ any;
|