runcheck 0.45.0 → 0.45.1
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/runcheck.d.ts +1 -1
- package/package.json +1 -1
package/dist/runcheck.d.ts
CHANGED
|
@@ -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
|
|
103
|
+
declare function rc_literals<T extends (string | number | boolean)[]>(...literals: T): RcType<T[number]>;
|
|
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