From 45dd008638d82b389edeadc370fbe17b3909f32b Mon Sep 17 00:00:00 2001 From: Francesca Guiducci Date: Wed, 12 Oct 2022 10:49:09 -0500 Subject: [PATCH] fix: Allow null values for EntityInHierarchy.parentId (#159) fix: Allow null values for EntityInHierarchy.parentId --- package.json | 2 +- src/types/entities.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0c2f06b..263977e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@doist/todoist-api-typescript", - "version": "2.0.6", + "version": "2.0.7", "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/entities.ts b/src/types/entities.ts index 3ccbae1..6701210 100644 --- a/src/types/entities.ts +++ b/src/types/entities.ts @@ -24,7 +24,7 @@ export type OrderedEntity = TodoistEntity & { } export type EntityInHierarchy = OrderedEntity & { - parentId?: string + parentId?: string | null } export const DueDate = Record({