Skip to content

Commit

Permalink
feat(NODE-3691): make time series options granularity type strict (#3005
Browse files Browse the repository at this point in the history
)

* feat(typescript): proper granularity type

Co-authored-by: Daria Pardue <81593090+dariakp@users.noreply.github.com>
  • Loading branch information
zerefdev and dariakp committed Nov 2, 2021
1 parent 662902d commit 98017f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations/create_collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ILLEGAL_COMMAND_FIELDS = new Set([
export interface TimeSeriesCollectionOptions extends Document {
timeField: string;
metaField?: string;
granularity?: string;
granularity?: 'seconds' | 'minutes' | 'hours' | string;
}

/** @public */
Expand Down

0 comments on commit 98017f9

Please sign in to comment.