From 4a96c98273b5403fbd49c3dceb04b33acb85de49 Mon Sep 17 00:00:00 2001 From: Francesca Guiducci Date: Mon, 10 Oct 2022 19:14:17 +0200 Subject: [PATCH] fix: Allow passing null assigneeId and dueString to unset field (#155) fix: Allow passing null assigneeId and dueString to unset field --- package-lock.json | 4 ++-- package.json | 2 +- src/types/requests.ts | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6ae3ad0..436a7c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@doist/todoist-api-typescript", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@doist/todoist-api-typescript", - "version": "2.0.4", + "version": "2.0.5", "license": "MIT", "dependencies": { "axios": "^0.27.0", diff --git a/package.json b/package.json index 495b9b2..994f0cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@doist/todoist-api-typescript", - "version": "2.0.4", + "version": "2.0.5", "description": "A typescript wrapper for the Todoist REST API.", "author": "Doist developers", "repository": "git@github.com:doist/todoist-api-typescript.git", diff --git a/src/types/requests.ts b/src/types/requests.ts index 378e38e..6f7d9a4 100644 --- a/src/types/requests.ts +++ b/src/types/requests.ts @@ -35,11 +35,11 @@ export type UpdateTaskArgs = { description?: string labels?: string[] priority?: number - dueString?: string - dueLang?: string - dueDate?: string - dueDatetime?: string - assigneeId?: string + dueString?: string | null + dueLang?: string | null + dueDate?: string | null + dueDatetime?: string | null + assigneeId?: string | null } export type ProjectViewStyle = 'list' | 'board'