Skip to content

Commit 7111d9a

Browse files
zerefdevdariakp
andauthored
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 43300c3 commit 7111d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operations/create_collection.ts

+1-1
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)