浏览代码

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

- `Indicator` -> `Component`

Closes #352
main
Yao Wang 3 年前
父节点
当前提交
f8dc5b3248
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      packages/core/README.md

+ 1
- 1
packages/core/README.md 查看文件

@@ -295,7 +295,7 @@ export interface BoxShape extends TLShape {
295 295
 
296 296
 ### Component
297 297
 
298
-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.
298
+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.
299 299
 
300 300
 ```tsx
301 301
 // BoxComponent.ts

正在加载...
取消
保存