mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
doc: fix list style (#2823)
This commit is contained in:
parent
20739a8111
commit
1d34f11a87
1 changed files with 7 additions and 2 deletions
|
@ -54,6 +54,9 @@ When designing function interfaces, stick to the following rules.
|
|||
there is only one, and it seems inconceivable that we would add more optional
|
||||
parameters in the future.
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- see https://github.com/prettier/prettier/issues/3679 -->
|
||||
|
||||
3. The 'options' argument is the only argument that is a regular 'Object'.
|
||||
|
||||
Other arguments can be objects, but they must be distinguishable from a
|
||||
|
@ -65,6 +68,8 @@ When designing function interfaces, stick to the following rules.
|
|||
This allows the API to evolve in a backwards compatible way, even when the
|
||||
position of the options object changes.
|
||||
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
```ts
|
||||
// BAD: optional parameters not part of options object. (#2)
|
||||
export function resolve(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue