runcheck 0.44.0 → 0.45.0

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/README.md CHANGED
@@ -4,7 +4,7 @@ A lib for js/typescript runtime type checks with autofix support. Runcheck has t
4
4
 
5
5
  Benchmarks:
6
6
 
7
- ![](imgs/2023-04-20-21-17-38.png)
7
+ ![Benchmarks](image.png)
8
8
 
9
9
  Obs: Runcheck is in Beta and it's api can still change
10
10
 
@@ -100,7 +100,7 @@ declare const rc_string: RcType<string>;
100
100
  declare const rc_number: RcType<number>;
101
101
  declare const rc_date: RcType<Date>;
102
102
  declare function rc_instanceof<T extends Function>(classToCheck: T): RcType<T>;
103
- declare function rc_literals<T extends (string | number | boolean)[]>(...literals: T): RcType<T[number]>;
103
+ declare function rc_literals<T extends (string | number | boolean)>(...literals: T[]): RcType<T>;
104
104
  declare function rc_union<T extends RcType<any>[]>(...types: T): RcType<RcInferType<T[number]>>;
105
105
  type NotUndefined<T> = T extends undefined ? never : T;
106
106
  declare function rc_default<T>(schema: RcType<T>, defaultValue: NotUndefined<T> | (() => NotUndefined<T>)): RcType<NotUndefined<T>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "runcheck",
3
3
  "description": "A tiny (less than 2 KiB Gzipped) and treeshakable! lib for typescript runtime type checks with autofix support",
4
- "version": "0.44.0",
4
+ "version": "0.45.0",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist"