diff --git a/packages/account/.eslintrc.js b/packages/account/.eslintrc.js index 8842b63e58a1..b5fe2450213a 100644 --- a/packages/account/.eslintrc.js +++ b/packages/account/.eslintrc.js @@ -7,7 +7,4 @@ module.exports = { webpack: { config: webpackConfig({}) }, }, }, - rules: { - 'import/no-extraneous-dependencies': ['off', { devDependencies: ['**/*.spec.*'] }], - }, -}; +}; \ No newline at end of file diff --git a/packages/account/build/constants.js b/packages/account/build/constants.js index 77d6e833d2bb..807b4047aa10 100644 --- a/packages/account/build/constants.js +++ b/packages/account/build/constants.js @@ -31,7 +31,6 @@ const ALIASES = { Services: path.resolve(__dirname, '../src/Services'), Stores: path.resolve(__dirname, '../src/Stores'), Styles: path.resolve(__dirname, '../src/Styles'), - Types: path.resolve(__dirname, '../src/Types'), }; const rules = (is_test_env = false, is_mocha_only = false) => [ diff --git a/packages/account/global.d.ts b/packages/account/global.d.ts deleted file mode 100644 index 5ac902685ee5..000000000000 --- a/packages/account/global.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module '@binary-com/binary-document-uploader'; diff --git a/packages/account/package.json b/packages/account/package.json index 30950f6052cf..b27fb7d140ce 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -28,7 +28,6 @@ }, "dependencies": { "@binary-com/binary-document-uploader": "^2.4.7", - "@deriv/api-types": "1.0.48", "@deriv/components": "^1.0.0", "@deriv/shared": "^1.0.0", "@deriv/translations": "^1.0.0", diff --git a/packages/account/src/Types/common-prop.type.ts b/packages/account/src/Types/common-prop.type.ts deleted file mode 100644 index 3c4592d190d0..000000000000 --- a/packages/account/src/Types/common-prop.type.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type TFormValidation = { - warnings: { [key: string]: string }; - errors: { [key: string]: string }; -}; - -export type TToken = { - display_name: string; - last_used: string; - scopes: string[]; - token: string; -}; diff --git a/packages/account/src/Types/context.type.ts b/packages/account/src/Types/context.type.ts deleted file mode 100644 index 8edbccc6eca8..000000000000 --- a/packages/account/src/Types/context.type.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { TToken } from './common-prop.type'; - -export type TPlatformContext = { - is_appstore: boolean; - displayName: string; -}; - -export type TApiContext = { - api_tokens: NonNullable | undefined; - deleteToken: (token: string) => Promise; - footer_ref: Element | DocumentFragment | undefined; - overlay_ref: - | ((...args: unknown[]) => unknown) - | import('prop-types').InferProps<{ - current: import('prop-types').Requireable; - }>; - toggleOverlay: () => void; -}; diff --git a/packages/account/src/Types/index.ts b/packages/account/src/Types/index.ts deleted file mode 100644 index 07ac06fc0417..000000000000 --- a/packages/account/src/Types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './common-prop.type'; -export * from './context.type'; diff --git a/packages/account/tsconfig.json b/packages/account/tsconfig.json index 954f183f6f61..182c1c0c7d40 100644 --- a/packages/account/tsconfig.json +++ b/packages/account/tsconfig.json @@ -8,13 +8,15 @@ "Containers/*": ["src/Containers/*"], "Constants/*": ["src/Constants/*"], "Configs/*": ["src/Configs/*"], + "Duplicated/*": ["src/Duplicated/*"], "Helpers/*": ["src/Helpers/*"], + "Layout/*": ["src/Layout/*"], "Modules/*": ["src/Modules/*"], "Sections/*": ["src/Sections/*"], "Stores/*": ["src/Stores/*"], - "Types": ["src/Types"], - "@deriv/*": ["../*/src"], + "Styles/*": ["src/Styles/*"], + "@deriv/*": ["../*/src"] } }, - "include": ["src","globals.d.ts"] -} \ No newline at end of file + "include": ["src"] +}