@sinclair/typebox 0.24.46 → 0.24.47

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/typebox.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.24.46",
3
+ "version": "0.24.47",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
package/typebox.d.ts CHANGED
@@ -353,7 +353,7 @@ export declare class TypeBuilder {
353
353
  /** Creates a new object whose properties are omitted from the given object */
354
354
  Omit<T extends TObject, K extends TUnion<TLiteral<string>[]>>(schema: T, keys: K, options?: ObjectOptions): TOmit<T, UnionStringLiteralToTuple<K>>;
355
355
  /** Creates a new object whose properties are omitted from the given object */
356
- Omit<T extends TObject, K extends ObjectPropertyKeys<T>[]>(schema: T, keys: [...K], options?: ObjectOptions): TOmit<T, K>;
356
+ Omit<T extends TObject, K extends ObjectPropertyKeys<T>[]>(schema: T, keys: readonly [...K], options?: ObjectOptions): TOmit<T, K>;
357
357
  /** Creates a tuple type from this functions parameters */
358
358
  Parameters<T extends TFunction<any[], any>>(schema: T, options?: SchemaOptions): TParameters<T>;
359
359
  /** Creates an object type whose properties are all optional */
@@ -361,7 +361,7 @@ export declare class TypeBuilder {
361
361
  /** Creates a object whose properties are picked from the given object */
362
362
  Pick<T extends TObject, K extends TUnion<TLiteral<string>[]>>(schema: T, keys: K, options?: ObjectOptions): TPick<T, UnionStringLiteralToTuple<K>>;
363
363
  /** Creates a object whose properties are picked from the given object */
364
- Pick<T extends TObject, K extends ObjectPropertyKeys<T>[]>(schema: T, keys: [...K], options?: ObjectOptions): TPick<T, K>;
364
+ Pick<T extends TObject, K extends ObjectPropertyKeys<T>[]>(schema: T, keys: readonly [...K], options?: ObjectOptions): TPick<T, K>;
365
365
  /** Creates a promise type. This type cannot be represented in schema. */
366
366
  Promise<T extends TSchema>(item: T, options?: SchemaOptions): TPromise<T>;
367
367
  /** Creates an object whose properties are derived from the given string literal union. */