@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.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 extends Record<string, unknown>>(): ChainableSchemaType<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 extends Record<string, unknown>>(): ChainableSchemaType<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;