Skip to content

Commit

Permalink
fix jsdoc for Inspectable.format (#1720)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Nov 30, 2023
1 parent af31997 commit 56a0334
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-rocks-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

fix jsdoc for Inspectable.format
11 changes: 11 additions & 0 deletions docs/modules/Inspectable.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Added in v2.0.0
- [NodeInspectSymbol](#nodeinspectsymbol)
- [NodeInspectSymbol (type alias)](#nodeinspectsymbol-type-alias)
- [utils](#utils)
- [format](#format)
- [toJSON](#tojson)

---
Expand Down Expand Up @@ -62,6 +63,16 @@ Added in v2.0.0
# utils
## format
**Signature**
```ts
export declare const format: (x: unknown) => string
```
Added in v2.0.0
## toJSON
**Signature**
Expand Down
4 changes: 3 additions & 1 deletion src/Inspectable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ export const toJSON = (x: unknown): unknown => {
return x
}

/** @internal */
/**
* @since 2.0.0
*/
export const format = (x: unknown): string => JSON.stringify(x, null, 2)

0 comments on commit 56a0334

Please sign in to comment.