milkio 0.2.15 → 0.2.16

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.
@@ -5,7 +5,7 @@ export function defineApi<ApiT extends Api>(api: ApiT): ApiT & { isApi: true } {
5
5
  return { ...api, isApi: true };
6
6
  }
7
7
 
8
- export type Api = {
8
+ export type Api<ActionT = unknown> = {
9
9
  meta: Meta;
10
10
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
11
  action: (params: any, context: Context) => Promise<unknown> | unknown;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "milkio",
3
3
  "type": "module",
4
4
  "module": "index.ts",
5
- "version": "0.2.15",
5
+ "version": "0.2.16",
6
6
  "peerDependencies": {
7
7
  "typescript": "^5.4.2"
8
8
  },