forked from FoundKeyGang/FoundKey
foundkey-js: make DriveFile.comment nullable
There's a few places in the client code that checks for a null comment, suggesting this field may be set to null.
This commit is contained in:
parent
8356ba2f94
commit
157eab2dee
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Changed
|
### Changed
|
||||||
- foundkey-js is now part of the main FoundKey repo
|
- foundkey-js is now part of the main FoundKey repo
|
||||||
- BREAKING: foundkey-js now uses ES2020 modules. Ensure that your version of Node supports them.
|
- BREAKING: foundkey-js now uses ES2020 modules. Ensure that your version of Node supports them.
|
||||||
|
- The `comment` property of `DriveFile` is now nullable. Make sure to check that this property is not `null` before accessing it.
|
||||||
|
|
||||||
## 0.0.15 - 2022-07-22
|
## 0.0.15 - 2022-07-22
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -117,7 +117,7 @@ export type DriveFile = {
|
||||||
size: number;
|
size: number;
|
||||||
md5: string;
|
md5: string;
|
||||||
blurhash: string;
|
blurhash: string;
|
||||||
comment: string;
|
comment: string | null;
|
||||||
properties: Record<string, any>;
|
properties: Record<string, any>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue