Skip to content

Commit 2f01b9e

Browse files
keithamusmuan
andauthored
docs(targets): drop sentence about return types
Co-authored-by: Mu-An 慕安 <me@muanchiou.com>
1 parent cb6a33d commit 2f01b9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/_guide/targets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Remember! There are two decorators available, `@target` which fetches only one e
6666
</div>
6767
</div>
6868

69-
The `@target` decorator will only ever return _one_ element, just like `querySelector`. If you want to get multiple Targets, you need the `@targets` decorator which works almost the same, but returns an Array of elements, and it searches the `data-targets` attribute (not `data-target`). To put this into types: `@target` returns `Element|undefined` while `@targets` returns `Array<Element>`
69+
The `@target` decorator will only ever return _one_ element, just like `querySelector`. If you want to get multiple Targets, you need the `@targets` decorator which works almost the same, but returns an Array of elements, and it searches the `data-targets` attribute (not `data-target`).
7070

7171
Elements can be referenced as multiple targets, and targets may be referenced multiple times within the HTML:
7272

0 commit comments

Comments
 (0)