dry-ux 1.26.0 → 1.27.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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
declare type Args<T> = {
|
|
2
|
-
args
|
|
2
|
+
args: T;
|
|
3
3
|
skipAuthCheck?: boolean;
|
|
4
4
|
};
|
|
5
5
|
declare type Result<T = void> = T extends void ? Promise<any> : Promise<T>;
|
|
6
|
-
|
|
6
|
+
declare type ArgType<T> = T extends void ? Omit<Args<any>, "args"> | void : Args<T>;
|
|
7
|
+
export declare type DajaxiceFn<TArgs = void> = <TResult = void>(args: ArgType<TArgs>) => Result<TResult>;
|
|
7
8
|
/**
|
|
8
9
|
* This function is used to create a type safe proxy for the Dajaxice functions.
|
|
9
10
|
* @param modules: The modules object from the Dajaxice generated file.
|