Skip to content

Commit

Permalink
fix(typings): schemaVersion supports an async fn (#3339)
Browse files Browse the repository at this point in the history
Following #557, the `schemaVersion` option also supports an async function.
  • Loading branch information
y-lohse committed Aug 29, 2021
1 parent 61026b2 commit f344ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-server-core/src/core/types.ts
Expand Up @@ -117,7 +117,7 @@ export interface CreateOptions {
queryTransformer?: QueryRewriteFn;
queryRewrite?: QueryRewriteFn;
preAggregationsSchema?: string | PreAggregationsSchemaFn;
schemaVersion?: (context: RequestContext) => string;
schemaVersion?: (context: RequestContext) => string | Promise<string>;
extendContext?: ExtendContextFn;
scheduledRefreshTimer?: boolean | number;
scheduledRefreshTimeZones?: string[];
Expand Down

0 comments on commit f344ff3

Please sign in to comment.