Skip to content

Commit bf0a830

Browse files
committed
lint
1 parent 34d9a59 commit bf0a830

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/svelte/src/internal/client/reactivity/props.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ const rest_props_handler = {
4545
},
4646
set(target, key) {
4747
if (DEV) {
48-
throw new Error(`Rest element properties of $props() such as ${target.name}.${String(key)} are readonly`);
48+
throw new Error(
49+
`Rest element properties of $props() such as ${target.name}.${String(key)} are readonly`
50+
);
4951
}
5052

5153
return false;

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ declare module 'svelte/compiler' {
708708
node: Identifier;
709709
/**
710710
* - `normal`: A variable that is not in any way special
711-
* - `prop`: A normal prop (possibly reassigned)
711+
* - `prop`: A normal prop (possibly reassigned or mutated)
712712
* - `bindable_prop`: A prop one can `bind:` to (possibly reassigned or mutated)
713713
* - `rest_prop`: A rest prop
714714
* - `state`: A state variable

0 commit comments

Comments
 (0)