From 6cb3a87e6010c36f8f484bf65d5c009c5e58994b Mon Sep 17 00:00:00 2001 From: John B Date: Thu, 27 Jan 2022 10:33:56 -0800 Subject: [PATCH] fix: remove ToJSON type (#4031) The `ToJSON` type has a circular reference that prevents compilation. It's unused though so we can safely remove it. Fixes: https://github.com/ipfs/js-ipfs/issues/4029 BREAKING CHANGE: the `ToJSON` type has been removed --- packages/ipfs-core-types/src/utils.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/ipfs-core-types/src/utils.ts b/packages/ipfs-core-types/src/utils.ts index 5e8e238403..1833a70b04 100644 --- a/packages/ipfs-core-types/src/utils.ts +++ b/packages/ipfs-core-types/src/utils.ts @@ -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 */