Fix code style errors

Remove extra whitespace, use more consistent spacing, add missing
semicolons, using dangling commas, break up long lines, consistent
multiline operator placement, add missing JSDoc strings and so on.
This commit is contained in:
Hornwitser committed 2023-11-19 04:48:38 +01:00
1 parent 97e05c0610
commit 7314dc99c8
71 files changed
+403 -290

No files matched your search

+8 -8
View File
@@ -37,8 +37,8 @@ export class PlaceEvent {
}
static jsonSchema = Type.Object({
"items": Type.Array(Item.jsonSchema)
})
"items": Type.Array(Item.jsonSchema),
});
static fromJSON(json: Static<typeof PlaceEvent.jsonSchema>): PlaceEvent {
return new this(json.items.map(item => Item.fromJSON(item)));
@@ -58,8 +58,8 @@ export class RemoveRequest {
}
static jsonSchema = Type.Object({
"items": Type.Array(Item.jsonSchema)
})
"items": Type.Array(Item.jsonSchema),
});
static fromJSON(json: Static<typeof RemoveRequest.jsonSchema>): RemoveRequest {
return new this(json.items.map(item => Item.fromJSON(item)));
@@ -91,8 +91,8 @@ export class UpdateStorageEvent {
}
static jsonSchema = Type.Object({
"items": Type.Array(Item.jsonSchema)
})
"items": Type.Array(Item.jsonSchema),
});
static fromJSON(json: Static<typeof UpdateStorageEvent.jsonSchema>): UpdateStorageEvent {
return new this(json.items.map(item => Item.fromJSON(item)));
@@ -113,8 +113,8 @@ export class SetStorageSubscriptionRequest {
}
static jsonSchema = Type.Object({
"storage": Type.Boolean()
})
"storage": Type.Boolean(),
});
static fromJSON(json: Static<typeof SetStorageSubscriptionRequest.jsonSchema>): SetStorageSubscriptionRequest {
return new this(json.storage);