runtypex 0.1.10 → 0.1.12
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/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { makeValidate, makeAssert, type ValidateFn } from "./runtime/validate";
|
|
1
|
+
export { makeValidate, makeAssert, type ValidateFn, type AssertFn } from "./runtime/validate";
|
|
2
2
|
export { default as vitePlugin } from "./transformer/vite-plugin";
|
|
3
3
|
export { default as tsTransformer } from "./transformer/ts-transformer";
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
* NOTE: These factories are replaced at build-time by the transformer.
|
|
7
7
|
*/
|
|
8
8
|
export type ValidateFn<T> = (value: unknown) => value is T;
|
|
9
|
+
export type AssertFn<T> = (value: unknown) => asserts value is T;
|
|
9
10
|
export declare function makeValidate<T>(): ValidateFn<T>;
|
|
10
|
-
export declare function makeAssert<T>():
|
|
11
|
+
export declare function makeAssert<T>(): AssertFn<T>;
|