Skip to content

Commit

Permalink
fix(@cubejs-client/core): Add parseDateMeasures field to CubeJSApiOpt…
Browse files Browse the repository at this point in the history
…ions (typings)
  • Loading branch information
ovr committed Oct 20, 2020
1 parent 6ab4b5b commit e1a1ada
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/cubejs-client-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ declare module '@cubejs-client/core' {
headers?: Record<string, string>;
pollInterval?: number;
credentials?: 'omit' | 'same-origin' | 'include';
parseDateMeasures?: boolean;
};

export type LoadMethodOptions = {
Expand Down Expand Up @@ -307,9 +308,9 @@ declare module '@cubejs-client/core' {
* ]
* }
* ```
*
*
* In case when you want to add `order` or `limit` to the query, you can simply spread it
*
*
* ```js
* // An example for React
* const drillDownResponse = useCubeQuery(
Expand All @@ -318,7 +319,7 @@ declare module '@cubejs-client/core' {
* limit: 30,
* order: {
* 'Orders.ts': 'desc'
* }
* }
* },
* {
* skip: !drillDownQuery
Expand Down Expand Up @@ -780,10 +781,10 @@ declare module '@cubejs-client/core' {
* @param query - [Query object](query-format)
*/
load(query: Query | Query[], options?: LoadMethodOptions, callback?: LoadMethodCallback<ResultSet>): void;

/**
* Allows you to fetch data and receive updates over time. See [Real-Time Data Fetch](real-time-data-fetch)
*
*
* ```js
* cubejsApi.subscribe(
* {
Expand Down

0 comments on commit e1a1ada

Please sign in to comment.