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> = {
769769 */
770770export const service = < P extends string , M > ( service : {
771771 name : P ;
772- handlers : ServiceOpts < M > ;
772+ handlers : ServiceOpts < M > & ThisType < M > ;
773773 description ?: string ;
774774 metadata ?: Record < string , string > ;
775775} ) : ServiceDefinition < P , M > => {
@@ -865,7 +865,7 @@ export type ObjectOpts<U> = {
865865 */
866866export const object = < P extends string , M > ( object : {
867867 name : P ;
868- handlers : ObjectOpts < M > ;
868+ handlers : ObjectOpts < M > & ThisType < M > ;
869869 description ?: string ;
870870 metadata ?: Record < string , string > ;
871871} ) : VirtualObjectDefinition < P , M > => {
@@ -963,7 +963,7 @@ export type WorkflowOpts<U> = {
963963 */
964964export const workflow = < P extends string , M > ( workflow : {
965965 name : P ;
966- handlers : WorkflowOpts < M > ;
966+ handlers : WorkflowOpts < M > & ThisType < M > ;
967967 description ?: string ;
968968 metadata ?: Record < string , string > ;
969969} ) : WorkflowDefinition < P , M > => {
Original file line number Diff line number Diff line change 1414 "skipLibCheck" : true ,
1515 "forceConsistentCasingInFileNames" : true ,
1616 "allowSyntheticDefaultImports" : true ,
17+ "noImplicitThis" : true ,
1718 "paths" : {
1819 "@restatedev/restate-sdk-core" : [
1920 " ./packages/restate-sdk-core/src/public_api.ts"
You can’t perform that action at this time.
0 commit comments