Skip to content

Commit f244b80

Browse files
authored
docs: referenced_from_script var value (sveltejs#4486)
1 parent 20e0790 commit f244b80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/content/docs/04-compile-time.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ const {
113113
* `module` is `true` if the value is declared in a `context="module"` script
114114
* `mutated` is `true` if the value's properties are assigned to inside the component
115115
* `reassigned` is `true` if the value is reassigned inside the component
116-
* `referenced` is `true` if the value is used outside the declaration
116+
* `referenced` is `true` if the value is used in the template
117+
* `referenced_from_script` is `true` if the value is used in the `<script>` outside the declaration
117118
* `writable` is `true` if the value was declared with `let` or `var` (but not `const`, `class` or `function`)
118119
* `stats` is an object used by the Svelte developer team for diagnosing the compiler. Avoid relying on it to stay the same!
119120

@@ -144,6 +145,7 @@ compiled: {
144145
mutated: boolean,
145146
reassigned: boolean,
146147
referenced: boolean,
148+
referenced_from_script: boolean,
147149
writable: boolean
148150
}>,
149151
stats: {

0 commit comments

Comments
 (0)