[docs] fix type (tldraw/core) (#353)

- `Indicator` -> `Component`

Closes #352
pull/354/head
Yao Wang 2021-11-22 23:21:19 +08:00 zatwierdzone przez GitHub
rodzic 5e6a6c9967
commit f8dc5b3248
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -295,7 +295,7 @@ export interface BoxShape extends TLShape {
### Component
Next, use `TLShapeUtil.Indicator` to create a second component for your shape's `Component`. The `Renderer` will use this component to display the shape on the canvas.
Next, use `TLShapeUtil.Component` to create a second component for your shape's `Component`. The `Renderer` will use this component to display the shape on the canvas.
```tsx
// BoxComponent.ts