File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ export interface GridFSFile {
44
44
length : number ;
45
45
chunkSize : number ;
46
46
filename : string ;
47
- contentType ?: string ;
48
- aliases ?: string [ ] ;
49
47
metadata ?: Document ;
50
48
uploadDate : Date ;
49
+ /** @deprecated Will be removed in the next major version. */
50
+ contentType ?: string ;
51
+ /** @deprecated Will be removed in the next major version. */
52
+ aliases ?: string [ ] ;
51
53
}
52
54
53
55
/** @internal */
Original file line number Diff line number Diff line change @@ -26,9 +26,15 @@ export interface GridFSBucketWriteStreamOptions extends WriteConcernOptions {
26
26
id ?: ObjectId ;
27
27
/** Object to store in the file document's `metadata` field */
28
28
metadata ?: Document ;
29
- /** String to store in the file document's `contentType` field */
29
+ /**
30
+ * String to store in the file document's `contentType` field.
31
+ * @deprecated Will be removed in the next major version. Add a contentType field to the metadata document instead.
32
+ */
30
33
contentType ?: string ;
31
- /** Array of strings to store in the file document's `aliases` field */
34
+ /**
35
+ * Array of strings to store in the file document's `aliases` field.
36
+ * @deprecated Will be removed in the next major version. Add an aliases field to the metadata document instead.
37
+ */
32
38
aliases ?: string [ ] ;
33
39
}
34
40
You can’t perform that action at this time.
0 commit comments