Open theexplay opened 2 years ago
Hi, trying to use your library and having difficulties with return type
For example, trying to add task
items: { ... add: (args: TodoistV8Types.ItemAdd) => Promise<TodoistV8Types.NodeType | undefined>; ... }
It returns TodoistV8Types.NodeType, but i except to get TodoistV8Types.Item with result from response to update my locale store with new task
TodoistV8Types.NodeType
TodoistV8Types.Item
Data returned from request:
Request:
Can you explain why the type is returned everywhere equals to NodeType?
Also confused with SectionAdd and SectionUpdate types. id param missed
SectionAdd
SectionUpdate
Hi, trying to use your library and having difficulties with return type
For example, trying to add task
It returns
TodoistV8Types.NodeType
, but i except to getTodoistV8Types.Item
with result from response to update my locale store with new taskData returned from request:
Request:
Can you explain why the type is returned everywhere equals to NodeType?