From 0c5d277c40f7996462ffc0dadbc3c32ec3bbe6d1 Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Fri, 11 Dec 2020 15:17:32 -0800 Subject: [PATCH] chore: rename type dir to types As per https://github.com/ipfs/js-ipfs/issues/3413#issuecomment-741726719 --- packages/interface-ipfs-core/tsconfig.json | 2 +- .../interface-ipfs-core/{type => types}/basic.ts | 0 .../{type => types}/pin/remote.ts | 0 .../{type => types}/pin/remote/service.ts | 0 packages/ipfs-http-client/src/pin/remote/index.js | 10 +++++----- packages/ipfs-http-client/src/pin/remote/service.js | 12 ++++++------ 6 files changed, 12 insertions(+), 12 deletions(-) rename packages/interface-ipfs-core/{type => types}/basic.ts (100%) rename packages/interface-ipfs-core/{type => types}/pin/remote.ts (100%) rename packages/interface-ipfs-core/{type => types}/pin/remote/service.ts (100%) diff --git a/packages/interface-ipfs-core/tsconfig.json b/packages/interface-ipfs-core/tsconfig.json index 82c9da695f..34b464add5 100644 --- a/packages/interface-ipfs-core/tsconfig.json +++ b/packages/interface-ipfs-core/tsconfig.json @@ -4,7 +4,7 @@ "outDir": "dist" }, "include": [ - "type", + "types", "package.json", ] } diff --git a/packages/interface-ipfs-core/type/basic.ts b/packages/interface-ipfs-core/types/basic.ts similarity index 100% rename from packages/interface-ipfs-core/type/basic.ts rename to packages/interface-ipfs-core/types/basic.ts diff --git a/packages/interface-ipfs-core/type/pin/remote.ts b/packages/interface-ipfs-core/types/pin/remote.ts similarity index 100% rename from packages/interface-ipfs-core/type/pin/remote.ts rename to packages/interface-ipfs-core/types/pin/remote.ts diff --git a/packages/interface-ipfs-core/type/pin/remote/service.ts b/packages/interface-ipfs-core/types/pin/remote/service.ts similarity index 100% rename from packages/interface-ipfs-core/type/pin/remote/service.ts rename to packages/interface-ipfs-core/types/pin/remote/service.ts diff --git a/packages/ipfs-http-client/src/pin/remote/index.js b/packages/ipfs-http-client/src/pin/remote/index.js index 9252408e6b..b428f1a46e 100644 --- a/packages/ipfs-http-client/src/pin/remote/index.js +++ b/packages/ipfs-http-client/src/pin/remote/index.js @@ -8,11 +8,11 @@ const toUrlSearchParams = require('../../lib/to-url-search-params') /** * @typedef {import('../..').HttpOptions} HttpOptions * @typedef {import('../../lib/core').ClientOptions} ClientOptions - * @typedef {import('interface-ipfs-core/type/basic').AbortOptions} AbortOptions - * @typedef {import('interface-ipfs-core/type/pin/remote').API} API - * @typedef {import('interface-ipfs-core/type/pin/remote').Pin} Pin - * @typedef {import('interface-ipfs-core/type/pin/remote').AddOptions} AddOptions - * @typedef {import('interface-ipfs-core/type/pin/remote').Query} Query + * @typedef {import('interface-ipfs-core/types/basic').AbortOptions} AbortOptions + * @typedef {import('interface-ipfs-core/types/pin/remote').API} API + * @typedef {import('interface-ipfs-core/types/pin/remote').Pin} Pin + * @typedef {import('interface-ipfs-core/types/pin/remote').AddOptions} AddOptions + * @typedef {import('interface-ipfs-core/types/pin/remote').Query} Query * * @implements {API} */ diff --git a/packages/ipfs-http-client/src/pin/remote/service.js b/packages/ipfs-http-client/src/pin/remote/service.js index 07f0c21051..fb5674ffad 100644 --- a/packages/ipfs-http-client/src/pin/remote/service.js +++ b/packages/ipfs-http-client/src/pin/remote/service.js @@ -6,11 +6,11 @@ const toUrlSearchParams = require('../../lib/to-url-search-params') /** * @typedef {import('../../lib/core').ClientOptions} ClientOptions * @typedef {import('../..').HttpOptions} HttpOptions - * @typedef {import('interface-ipfs-core/type/basic').AbortOptions} AbortOptions - * @typedef {import('interface-ipfs-core/type/pin/remote/service').API} API - * @typedef {import('interface-ipfs-core/type/pin/remote/service').Credentials} Credentials - * @typedef {import('interface-ipfs-core/type/pin/remote/service').RemotePinService} RemotePinService - * @typedef {import('interface-ipfs-core/type/pin/remote/service').RemotePinServiceWithStat} RemotePinServiceWithStat + * @typedef {import('interface-ipfs-core/types/basic').AbortOptions} AbortOptions + * @typedef {import('interface-ipfs-core/types/pin/remote/service').API} API + * @typedef {import('interface-ipfs-core/types/pin/remote/service').Credentials} Credentials + * @typedef {import('interface-ipfs-core/types/pin/remote/service').RemotePinService} RemotePinService + * @typedef {import('interface-ipfs-core/types/pin/remote/service').RemotePinServiceWithStat} RemotePinServiceWithStat * @implements {API} */ class Service { @@ -88,7 +88,7 @@ class Service { /** * @param {Object} json - * @returns {import('interface-ipfs-core/type/pin/remote/service').Stat} + * @returns {import('interface-ipfs-core/types/pin/remote/service').Stat} */ static decodeStat (json) { switch (json.Status) {