appflare 0.2.22 → 0.2.23

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,8 +1,11 @@
1
1
  export function generateExecution(): string {
2
2
  return `
3
- export async function executeOperation(
3
+ export async function executeOperation<
4
+ TShape extends ZodRawShape,
5
+ TResult,
6
+ >(
4
7
  c: Context<WorkerEnv>,
5
- \toperation: RegisteredOperation<ZodRawShape, unknown>,
8
+ operation: RegisteredOperation<TShape, TResult>,
6
9
  args: unknown,
7
10
  \tctx: AppflareContext,
8
11
  ): Promise<Response> {
package/dist/cli/index.js CHANGED
@@ -1486,9 +1486,12 @@ ${he()}
1486
1486
 
1487
1487
  ${be(e)}
1488
1488
  `}function we(){return `
1489
- export async function executeOperation(
1489
+ export async function executeOperation<
1490
+ TShape extends ZodRawShape,
1491
+ TResult,
1492
+ >(
1490
1493
  c: Context<WorkerEnv>,
1491
- operation: RegisteredOperation<ZodRawShape, unknown>,
1494
+ operation: RegisteredOperation<TShape, TResult>,
1492
1495
  args: unknown,
1493
1496
  ctx: AppflareContext,
1494
1497
  ): Promise<Response> {
@@ -1486,9 +1486,12 @@ ${he()}
1486
1486
 
1487
1487
  ${be(e)}
1488
1488
  `}function we(){return `
1489
- export async function executeOperation(
1489
+ export async function executeOperation<
1490
+ TShape extends ZodRawShape,
1491
+ TResult,
1492
+ >(
1490
1493
  c: Context<WorkerEnv>,
1491
- operation: RegisteredOperation<ZodRawShape, unknown>,
1494
+ operation: RegisteredOperation<TShape, TResult>,
1492
1495
  args: unknown,
1493
1496
  ctx: AppflareContext,
1494
1497
  ): Promise<Response> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appflare",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",