Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: remove ToJSON type (#4031)
Browse files Browse the repository at this point in the history
The `ToJSON` type has a circular reference that prevents compilation.

It's unused though so we can safely remove it.

Fixes: #4029

BREAKING CHANGE: the `ToJSON` type has been removed
  • Loading branch information
johnb8005 committed Jan 27, 2022
1 parent fbe1492 commit 6cb3a87
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/ipfs-core-types/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ export interface PreloadOptions {
preload?: boolean
}

export type ToJSON =
| null
| string
| number
| boolean
| ToJSON[]
| { toJSON?: () => ToJSON } & { [key: string]: ToJSON }

/**
* An IPFS path or CID
*/
Expand Down

0 comments on commit 6cb3a87

Please sign in to comment.