From 148ddafe59ac4e422e23aff4c1a41b701763aa9e Mon Sep 17 00:00:00 2001 From: Mihael Konjevic Date: Wed, 31 Jan 2024 15:03:31 +0100 Subject: [PATCH] fix: correctly infer work item payload type when work item is explicitly created --- package.json | 2 +- src/builder/TaskBuilder.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 400ed8e..7d405bc 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "build:main": "swc ./src -d ./build", "clean": "rimraf build coverage nyc_output", "type:dts": "tsc --emitDeclarationOnly --project tsconfig.build.json", - "type:check": "vitest typecheck", + "type:check": "vitest --typecheck.only", "format": "prettier \"src/**/*.ts\" --write", "format:check": "prettier \"src/**/*.ts\" --check", "lint": "eslint src --ext .ts --fix", diff --git a/src/builder/TaskBuilder.ts b/src/builder/TaskBuilder.ts index e24df50..994cfbb 100644 --- a/src/builder/TaskBuilder.ts +++ b/src/builder/TaskBuilder.ts @@ -336,7 +336,7 @@ export class TaskBuilder< TA, JT, ST, - P, + WorkItemBuilderP, TM, WorkItemBuilderWIM, R | WorkItemBuilderR,