Skip to content

Commit 12318d0

Browse files
zerefdevdariakp
authored andcommitted
feat(NODE-3691): make time series options granularity type strict (#3005)
* feat(typescript): proper granularity type Co-authored-by: Daria Pardue <[email protected]>
1 parent ccdccae commit 12318d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operations/create_collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ILLEGAL_COMMAND_FIELDS = new Set([
3737
export interface TimeSeriesCollectionOptions extends Document {
3838
timeField: string;
3939
metaField?: string;
40-
granularity?: string;
40+
granularity?: 'seconds' | 'minutes' | 'hours' | string;
4141
}
4242

4343
/** @public */

0 commit comments

Comments
 (0)