File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/restate-sdk/src/types Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -769,7 +769,7 @@ export type ServiceOpts<U> = {
769
769
*/
770
770
export const service = < P extends string , M > ( service : {
771
771
name : P ;
772
- handlers : ServiceOpts < M > ;
772
+ handlers : ServiceOpts < M > & ThisType < M > ;
773
773
description ?: string ;
774
774
metadata ?: Record < string , string > ;
775
775
} ) : ServiceDefinition < P , M > => {
@@ -865,7 +865,7 @@ export type ObjectOpts<U> = {
865
865
*/
866
866
export const object = < P extends string , M > ( object : {
867
867
name : P ;
868
- handlers : ObjectOpts < M > ;
868
+ handlers : ObjectOpts < M > & ThisType < M > ;
869
869
description ?: string ;
870
870
metadata ?: Record < string , string > ;
871
871
} ) : VirtualObjectDefinition < P , M > => {
@@ -963,7 +963,7 @@ export type WorkflowOpts<U> = {
963
963
*/
964
964
export const workflow = < P extends string , M > ( workflow : {
965
965
name : P ;
966
- handlers : WorkflowOpts < M > ;
966
+ handlers : WorkflowOpts < M > & ThisType < M > ;
967
967
description ?: string ;
968
968
metadata ?: Record < string , string > ;
969
969
} ) : WorkflowDefinition < P , M > => {
Original file line number Diff line number Diff line change 14
14
"skipLibCheck" : true ,
15
15
"forceConsistentCasingInFileNames" : true ,
16
16
"allowSyntheticDefaultImports" : true ,
17
+ "noImplicitThis" : true ,
17
18
"paths" : {
18
19
"@restatedev/restate-sdk-core" : [
19
20
" ./packages/restate-sdk-core/src/public_api.ts"
You can’t perform that action at this time.
0 commit comments