Skip to content

Commit fabae74

Browse files
authored
Fix @type annotations (#8882)
Without the braces only the first type was considered...
1 parent 75e77a1 commit fabae74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/models/api-token.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export default class ApiToken extends Model {
55
@attr token;
66
@attr('date') created_at;
77
@attr('date') last_used_at;
8-
/** @type string[] | null */
8+
/** @type {string[] | null} */
99
@attr crate_scopes;
10-
/** @type string[] | null */
10+
/** @type {string[] | null} */
1111
@attr endpoint_scopes;
12-
/** @type string | null */
12+
/** @type {string | null} */
1313
@attr('date') expired_at;
1414

1515
get isExpired() {

app/models/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class Version extends Model {
2424

2525
/**
2626
* The minimum supported Rust version of this crate version.
27-
* @type string | null
27+
* @type {string | null}
2828
*/
2929
@attr rust_version;
3030

0 commit comments

Comments
 (0)