Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a code error in plugin schema page #179

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zh-CN/guide/plugin/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace Example {
})
}

export default Foo
export default Example
```

形如 `name` 和 `Config` 这样的属性,我们称之为插件的元属性。它们需要与插件的入口函数同级导出。例如,你还可以通过导出 `usage` 属性来为插件提供使用方法。这样一来,一个完整的插件就可以写成这样:
Expand Down
Loading