Skip to content

Commit fbfe60e

Browse files
committed
fix: update jsdoc nullable annotations for consistency
1 parent a45fc55 commit fbfe60e

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/structures/services/FirewallApiService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export interface FirewallAttackLog {
126126
/**
127127
* Timestamp when the attack ended, null if ongoing.
128128
* @example 1700000000000
129-
* @nullable true
129+
* @nullable
130130
*/
131131
endedAt: number | null;
132132

@@ -156,7 +156,7 @@ export interface AttackNotificationSettings {
156156
/**
157157
* Discord webhook URL for attack notifications.
158158
* @example "https://discord.com/api/webhooks/123456789012345678/abcdefghijklmnopqrstuvwxyz"
159-
* @nullable true
159+
* @nullable
160160
*/
161161
discordWebhookURL: string | null;
162162
}

src/structures/services/MailHostingApiService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export interface MailHostingDetails {
169169

170170
/**
171171
* DKIM record details.
172-
* @nullable true
172+
* @nullable
173173
*/
174174
dkim: {
175175
/**

src/structures/services/UserApiService.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export interface Service {
147147

148148
/**
149149
* Group ID of the service, if applicable
150-
* @nullable true
150+
* @nullable
151151
* @example 456
152152
*/
153153
groupId: number | null;
@@ -209,28 +209,28 @@ export interface Service {
209209

210210
/**
211211
* Username associated with the service
212-
* @nullable true
212+
* @nullable
213213
* @example "user123"
214214
*/
215215
username: string | null;
216216

217217
/**
218218
* Password associated with the service
219-
* @nullable true
219+
* @nullable
220220
* @example "securepassword123"
221221
*/
222222
password: string | null;
223223

224224
/**
225225
* VPS ID if applicable, otherwise null
226-
* @nullable true
226+
* @nullable
227227
* @example 12345
228228
*/
229229
vpsId: number | null;
230230

231231
/**
232232
* Dedicated server ID if applicable, otherwise null
233-
* @nullable true
233+
* @nullable
234234
* @example "s100"
235235
*/
236236
dedicatedId: string | null;
@@ -261,7 +261,7 @@ export interface Service {
261261

262262
/**
263263
* Location code of the dedicated server if applicable, otherwise null
264-
* @nullable true
264+
* @nullable
265265
* @example "FRA-01"
266266
*/
267267
dedicatedServerLocation: 'FRA-01' | 'FRA-02' | 'FRA-03' | null;
@@ -285,7 +285,7 @@ export interface Service {
285285

286286
/**
287287
* Team ID if the service is associated with a team, otherwise null
288-
* @nullable true
288+
* @nullable
289289
* @example 789
290290
*/
291291
teamId: number | null;
@@ -446,7 +446,7 @@ export interface User {
446446

447447
/**
448448
* User's company name, if applicable
449-
* @nullable true
449+
* @nullable
450450
* @example "Example Corp"
451451
*/
452452
companyName: string | null;
@@ -483,7 +483,7 @@ export interface TicketMessageAuthor {
483483
/**
484484
* URL of the author's avatar
485485
* @format uri
486-
* @nullable true
486+
* @nullable
487487
* @example "https://example.com/avatar.jpg"
488488
*/
489489
avatar: string | null;
@@ -658,7 +658,7 @@ export interface Invoice {
658658
/**
659659
* Unix timestamp of the invoice payment date, null if not paid
660660
* @format date-time
661-
* @nullable true
661+
* @nullable
662662
* @example 1700000000000
663663
*/
664664
datePaid: number | null;

src/structures/services/VpsApiService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export interface VpsTask {
425425

426426
/**
427427
* Unix timestamp when the task ended or null if not ended.
428-
* @nullable true
428+
* @nullable
429429
* @example 1625254800000
430430
*/
431431
endedAt: number | null;

0 commit comments

Comments
 (0)