mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore: document how to document unstable APIs (#5484)
This commit is contained in:
parent
0cf043102e
commit
00645f09bf
20
.github/CONTRIBUTING.md
vendored
20
.github/CONTRIBUTING.md
vendored
@ -133,3 +133,23 @@ delimiter. E.g.
|
||||
* ```
|
||||
*/
|
||||
````
|
||||
|
||||
### Notices for unstable APIs
|
||||
|
||||
Each unstable API must have the
|
||||
[`@experimental`](https://tsdoc.org/pages/tags/experimental/) TSDoc tag and a
|
||||
[warning alert](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts)
|
||||
after the starting description.
|
||||
|
||||
```ts
|
||||
/**
|
||||
* <description>
|
||||
*
|
||||
* > [!WARNING]
|
||||
* > **UNSTABLE**: New API, yet to be vetted.
|
||||
*
|
||||
* @experimental
|
||||
*
|
||||
* ...
|
||||
*/
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user