From bb3f855f6787d913e57803623c3ae913dcaa96aa Mon Sep 17 00:00:00 2001 From: Richard Date: Sat, 14 Sep 2024 07:07:06 +1000 Subject: [PATCH] Fix generic type --- package.json | 2 +- src/workflows/StatefulWorkflow.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3893040..04b6478 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chrono-forge", - "version": "0.6.8", + "version": "0.6.9", "description": "A comprehensive framework for building resilient Temporal workflows, advanced state management, and real-time streaming activities in TypeScript. Designed for a seamless developer experience with powerful abstractions, dynamic orchestration, and full control over distributed systems.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/workflows/StatefulWorkflow.ts b/src/workflows/StatefulWorkflow.ts index cc7d544..1ed3dc4 100644 --- a/src/workflows/StatefulWorkflow.ts +++ b/src/workflows/StatefulWorkflow.ts @@ -135,7 +135,7 @@ export abstract class StatefulWorkflow< } @Query() - public get data(): P { + public get data(): P['data'] { return this.schemaManager.query(this.entityName, this.id); }