@ -751,11 +751,9 @@ Cannot export state from a module if it is reassigned. Either export a function
### 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.
`$state.opaque(...)` must be declared with an destructured array pattern and the state expression and invalidate expression must be an identifier (e.g. `let [state, invalidate] = $state.opaque(data);`)
```
For example: `let [state, invalidate] = $state.opaque(data);`
@ -170,9 +170,7 @@ It's possible to export a snippet from a `<script module>` block, but only if it
## 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.
For example: `let [state, invalidate] = $state.opaque(data);`
> `$state.opaque(...)` must be declared with an destructured array pattern and the state expression and invalidate expression must be an identifier (e.g. `let [state, invalidate] = $state.opaque(data);`)
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.");
e(node,"state_invalid_opaque_declaration","`$state.opaque(...)` must be declared with an destructured array pattern and the state expression and invalidate expression must be an identifier (e.g. `let [state, invalidate] = $state.opaque(data);`)");