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