Skip to content

Commit 8088283

Browse files
authored
Update quickObjectReturn grammar - trivial
1 parent 32d0cfa commit 8088283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tips/quickObjectReturn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var foo = () => {
77
bar: 123
88
};
99
```
10-
is a parsed as a *block* containing a *JavaScript Label* by JavaScript runtimes (cause of the JavaScript specification). If that doesn't make sense, don't worry, as you get a nice compiler error from TypeScript saying "unused label" anyways. You can fix it by surrounding the object literal with `()`:
10+
is parsed as a *block* containing a *JavaScript Label* by JavaScript runtimes (cause of the JavaScript specification). If that doesn't make sense, don't worry, as you get a nice compiler error from TypeScript saying "unused label" anyways. You can fix it by surrounding the object literal with `()`:
1111

1212
```ts
1313
var foo = () => ({

0 commit comments

Comments
 (0)