@defjs/core 0.0.0-test-0012 → 0.0.0-test-0013

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/dist/index.d.ts +1 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -128,7 +128,7 @@ export type DoRequestOptions = {
128
128
  client?: ClientOptions;
129
129
  timeout?: number;
130
130
  };
131
- export type DoRequestFn<Input = unknown, Output = unknown> = Input extends undefined ? (options?: DoRequestOptions) => Output : (input: RequestInputValue<Input>, options?: DoRequestOptions) => Output;
131
+ export type DoRequestFn<Input = unknown, Output = unknown> = Input extends undefined ? (options?: DoRequestOptions) => Promise<Output> : (input: RequestInputValue<Input>, options?: DoRequestOptions) => Promise<Output>;
132
132
  export type UseRequestFn<Output = unknown, Input = unknown> = () => {
133
133
  doRequest: DoRequestFn<Input, Output>;
134
134
  inputValue: Input extends Field<infer V> ? V : Input extends {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defjs/core",
3
- "version": "0.0.0-test-0012",
3
+ "version": "0.0.0-test-0013",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "bun run ./scripts/build.ts",