Fix type
This commit is contained in:
parent
0c0281d51d
commit
f514c1c200
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ export class Note {
|
|||
public renoteUserHost: string | null;
|
||||
//#endregion
|
||||
|
||||
constructor(data: Partial<Note>) {
|
||||
constructor(data?: Partial<Note> | null) {
|
||||
if (data == null) return;
|
||||
|
||||
for (const [k, v] of Object.entries(data)) {
|
||||
|
|
Loading…
Reference in a new issue