The monday.api() method does not include errors in its default return type. This requires additional handling in the client code and extending existing types.
Steps to reproduce
- Call `monday.api(). Which will not be valid.
- See the request fails
- It returns an array of objects
errors.
- Observe that the response does not include an
errors in the type definition.
api<T = any>(query: string, options?: APIOptions): Promise<{ data: T, account_id: number }>;
Expected behavior
Behavior is acceptable but the type definition could be extended.
Context and environment
-SDK Version: 0.5.6
-Environment: Node.js 22