Skip to content

Commit e319add

Browse files
committed
lint
1 parent 84a34ae commit e319add

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

documentation/docs/98-reference/.generated/compile-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ Cannot export state from a module if it is reassigned. Either export a function
751751
### state_invalid_opaque_declaration
752752

753753
```
754-
`$state.opaque(...)` must be declared with an destructured array pattern and the state expression must be an identifier.
754+
`$state.opaque(...)` must be declared with an destructured array pattern and the state expression and invalidation expression must be an identifier.
755755
```
756756

757757
For example: `let [state, invalidate] = $state.opaque(data);`

packages/svelte/src/compiler/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,12 @@ export function state_invalid_export(node) {
433433
}
434434

435435
/**
436-
* `$state.opaque(...)` must be declared with an destructured array pattern and the state expression must be an identifier.
436+
* `$state.opaque(...)` must be declared with an destructured array pattern and the state expression and invalidation expression must be an identifier.
437437
* @param {null | number | NodeLike} node
438438
* @returns {never}
439439
*/
440440
export function state_invalid_opaque_declaration(node) {
441-
e(node, "state_invalid_opaque_declaration", "`$state.opaque(...)` must be declared with an destructured array pattern and the state expression must be an identifier.");
441+
e(node, "state_invalid_opaque_declaration", "`$state.opaque(...)` must be declared with an destructured array pattern and the state expression and invalidation expression must be an identifier.");
442442
}
443443

444444
/**

0 commit comments

Comments
 (0)