Skip to content

Commit

Permalink
add tests for get response types
Browse files Browse the repository at this point in the history
  • Loading branch information
rami-monday committed Jan 10, 2024
1 parent 107975c commit c710fb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ts-tests/monday-sdk-js-module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ monday.api('test', { apiVersion: '2023-07' }); // $ExpectType Promise<{ data: ob

monday.setToken('test'); // $ExpectType void

monday.get('context'); // $ExpectType Promise<any>
monday.get('settings'); // $ExpectType Promise<any>
monday.get('itemIds'); // $ExpectType Promise<any>
monday.get('sessionToken'); // $ExpectType Promise<any>
monday.get('context'); // $ExpectType Promise<{ data: object; }>
monday.get('settings'); // $ExpectType Promise<{ data: object; }>
monday.get('itemIds'); // $ExpectType Promise<{ data: number[]; }>
monday.get('sessionToken'); // $ExpectType Promise<{ data: string; }>

monday.set('settings', {'text' : 'this is a test', 'number' : 23}); // $ExpectType Promise<any>

Expand Down

0 comments on commit c710fb7

Please sign in to comment.