lenix 1.7.12 → 1.7.13
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/package.json +1 -1
- package/shared/api.ts +2 -3
- package/shared/types.ts +0 -2
package/package.json
CHANGED
package/shared/api.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { asserts } from "@lenix/lenix"
|
|
2
|
-
import type { Fn } from "./types"
|
|
3
2
|
|
|
4
3
|
interface Api {
|
|
5
4
|
[resource: number]: never
|
|
6
5
|
[resource: string]: {
|
|
7
6
|
[method: number]: never
|
|
8
|
-
[method: string]: <
|
|
7
|
+
[method: string]: <Return, Args extends unknown[] = []>(...args: Args) => Return
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -31,4 +30,4 @@ export const api: Api = new Proxy(globalThis.exports, {
|
|
|
31
30
|
},
|
|
32
31
|
})
|
|
33
32
|
},
|
|
34
|
-
}) as unknown as Api
|
|
33
|
+
}) as unknown as Api
|