From 0aba39ee724b1fbf1a7bf7bfa30a8b752a528424 Mon Sep 17 00:00:00 2001 From: Evgeniy Timokhov Date: Mon, 21 Nov 2022 20:21:49 +0000 Subject: [PATCH] Chore: Updated deps --- package.json | 12 ++++++------ tests/e2e/test-cases/banner/output.d.ts | 2 +- tests/e2e/test-cases/custom-types-folder/output.d.ts | 2 +- .../disable-non-direct-exports/output.d.ts | 2 +- .../test-cases/export-default-from-entry/output.d.ts | 2 +- .../export-keyof-typeof-var-type/output.d.ts | 2 +- .../test-cases/handle-export-eq-from-npm/output.d.ts | 2 +- tests/e2e/test-cases/import()-type/output.d.ts | 2 +- .../output.d.ts | 2 +- tests/e2e/test-cases/import-from-deps/output.d.ts | 2 +- .../import-from-namespace-in-cjs/output.d.ts | 2 +- .../output.d.ts | 2 +- .../e2e/test-cases/import-type-from-deps/output.d.ts | 2 +- .../include-exclude-in-tsconfig/output.d.ts | 2 +- tests/e2e/test-cases/inline-from-deps/output.d.ts | 4 ++-- .../e2e/test-cases/primitive-generation/output.d.ts | 2 +- .../output.d.ts | 2 +- tests/e2e/test-cases/save-jsdoc/output.d.ts | 2 +- .../several-import-star-from-one-package/output.d.ts | 2 +- tests/e2e/test-cases/sort-nodes/output.d.ts | 12 ++++++------ tests/e2e/test-cases/using-custom-types/output.d.ts | 2 +- 21 files changed, 32 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index f53d002..7d6b081 100644 --- a/package.json +++ b/package.json @@ -24,17 +24,17 @@ "@types/mocha": "~10.0.0", "@types/node": "~14.18.26", "@types/yargs": "~17.0.13", - "@typescript-eslint/eslint-plugin": "~5.38.1", - "@typescript-eslint/parser": "~5.38.1", - "eslint": "~8.24.0", + "@typescript-eslint/eslint-plugin": "~5.44.0", + "@typescript-eslint/parser": "~5.44.0", + "eslint": "~8.28.0", "eslint-plugin-deprecation": "~1.3.2", "eslint-plugin-import": "~2.26.0", "eslint-plugin-prefer-arrow": "~1.2.1", - "eslint-plugin-unicorn": "~44.0.0", - "mocha": "~10.0.0", + "eslint-plugin-unicorn": "~45.0.0", + "mocha": "~10.1.0", "npm-run-all": "~4.1.5", "rimraf": "~3.0.2", - "ts-compiler": "npm:typescript@4.8.4", + "ts-compiler": "npm:typescript@4.9.3", "ts-node": "~10.9.1" }, "license": "MIT", diff --git a/tests/e2e/test-cases/banner/output.d.ts b/tests/e2e/test-cases/banner/output.d.ts index e9436a5..2cdfccd 100644 --- a/tests/e2e/test-cases/banner/output.d.ts +++ b/tests/e2e/test-cases/banner/output.d.ts @@ -1,5 +1,5 @@ // Generated by dts-bundle-generator v7.0.0 -export declare type TypeName = string | number; +export type TypeName = string | number; export {}; diff --git a/tests/e2e/test-cases/custom-types-folder/output.d.ts b/tests/e2e/test-cases/custom-types-folder/output.d.ts index e54b384..03f323b 100644 --- a/tests/e2e/test-cases/custom-types-folder/output.d.ts +++ b/tests/e2e/test-cases/custom-types-folder/output.d.ts @@ -1,5 +1,5 @@ import { Data } from 'fake-types-lib-2/data'; -export declare type MyData = Data | string; +export type MyData = Data | string; export {}; diff --git a/tests/e2e/test-cases/disable-non-direct-exports/output.d.ts b/tests/e2e/test-cases/disable-non-direct-exports/output.d.ts index 76f3851..680901b 100644 --- a/tests/e2e/test-cases/disable-non-direct-exports/output.d.ts +++ b/tests/e2e/test-cases/disable-non-direct-exports/output.d.ts @@ -8,7 +8,7 @@ declare enum Enum { declare function func(): void; interface Interface { } -declare type Type = string; +type Type = string; declare const enum ConstEnum2 { } declare enum Enum2 { diff --git a/tests/e2e/test-cases/export-default-from-entry/output.d.ts b/tests/e2e/test-cases/export-default-from-entry/output.d.ts index 0b2428a..7f56afc 100644 --- a/tests/e2e/test-cases/export-default-from-entry/output.d.ts +++ b/tests/e2e/test-cases/export-default-from-entry/output.d.ts @@ -1,6 +1,6 @@ export interface MyInterface { } -export declare type MyType = { +export type MyType = { [K in keyof T]: string; }; export default class NewClass implements MyInterface { diff --git a/tests/e2e/test-cases/export-keyof-typeof-var-type/output.d.ts b/tests/e2e/test-cases/export-keyof-typeof-var-type/output.d.ts index dc77fd0..fb3036a 100644 --- a/tests/e2e/test-cases/export-keyof-typeof-var-type/output.d.ts +++ b/tests/e2e/test-cases/export-keyof-typeof-var-type/output.d.ts @@ -2,6 +2,6 @@ declare const variableName: { a: number; b: string; }; -export declare type TypeOfConst = keyof typeof variableName; +export type TypeOfConst = keyof typeof variableName; export {}; diff --git a/tests/e2e/test-cases/handle-export-eq-from-npm/output.d.ts b/tests/e2e/test-cases/handle-export-eq-from-npm/output.d.ts index 5697e24..538cbd6 100644 --- a/tests/e2e/test-cases/handle-export-eq-from-npm/output.d.ts +++ b/tests/e2e/test-cases/handle-export-eq-from-npm/output.d.ts @@ -5,6 +5,6 @@ import { NamedDeclaration } from 'typescript'; export declare class StoppableEventEmitter extends EventEmitter { emitStoppableEvent(error: Error): this; } -export declare type ExportType = SomeCoolInterface | NamedDeclaration | string; +export type ExportType = SomeCoolInterface | NamedDeclaration | string; export {}; diff --git a/tests/e2e/test-cases/import()-type/output.d.ts b/tests/e2e/test-cases/import()-type/output.d.ts index c0b1e2d..c7b900e 100644 --- a/tests/e2e/test-cases/import()-type/output.d.ts +++ b/tests/e2e/test-cases/import()-type/output.d.ts @@ -12,6 +12,6 @@ export interface MyType { field3: import("ora").Options; field4: GenericType; } -export declare type MySecondType = MyType | number; +export type MySecondType = MyType | number; export {}; diff --git a/tests/e2e/test-cases/import-compound-type-from-npm-cause-unnecessary-import/output.d.ts b/tests/e2e/test-cases/import-compound-type-from-npm-cause-unnecessary-import/output.d.ts index 47c8b43..cdce4d9 100644 --- a/tests/e2e/test-cases/import-compound-type-from-npm-cause-unnecessary-import/output.d.ts +++ b/tests/e2e/test-cases/import-compound-type-from-npm-cause-unnecessary-import/output.d.ts @@ -1,5 +1,5 @@ import { InterfaceWithFields } from 'fake-package'; -export declare type MyType = InterfaceWithFields | null; +export type MyType = InterfaceWithFields | null; export {}; diff --git a/tests/e2e/test-cases/import-from-deps/output.d.ts b/tests/e2e/test-cases/import-from-deps/output.d.ts index 55c578c..c3525e9 100644 --- a/tests/e2e/test-cases/import-from-deps/output.d.ts +++ b/tests/e2e/test-cases/import-from-deps/output.d.ts @@ -1,5 +1,5 @@ import { Interface, Type } from 'fake-package'; -export declare type TestType = Interface | Type; +export type TestType = Interface | Type; export {}; diff --git a/tests/e2e/test-cases/import-from-namespace-in-cjs/output.d.ts b/tests/e2e/test-cases/import-from-namespace-in-cjs/output.d.ts index 3f4b07a..9fea859 100644 --- a/tests/e2e/test-cases/import-from-namespace-in-cjs/output.d.ts +++ b/tests/e2e/test-cases/import-from-namespace-in-cjs/output.d.ts @@ -1,6 +1,6 @@ export interface Options { } export declare const ExportedValue: Options; -export declare type ExportedType = Options; +export type ExportedType = Options; export {}; diff --git a/tests/e2e/test-cases/import-package-with-declaration-merging-with-default-lib/output.d.ts b/tests/e2e/test-cases/import-package-with-declaration-merging-with-default-lib/output.d.ts index f0387d8..5b1ebe2 100644 --- a/tests/e2e/test-cases/import-package-with-declaration-merging-with-default-lib/output.d.ts +++ b/tests/e2e/test-cases/import-package-with-declaration-merging-with-default-lib/output.d.ts @@ -1,5 +1,5 @@ import { FooBar } from 'fake-types-lib-3'; -export declare type Baz = FooBar; +export type Baz = FooBar; export {}; diff --git a/tests/e2e/test-cases/import-type-from-deps/output.d.ts b/tests/e2e/test-cases/import-type-from-deps/output.d.ts index ca42fe2..b0e6b9f 100644 --- a/tests/e2e/test-cases/import-type-from-deps/output.d.ts +++ b/tests/e2e/test-cases/import-type-from-deps/output.d.ts @@ -1,6 +1,6 @@ import { InterfaceWithFields } from 'fake-package'; export declare type FakePackageType = InterfaceWithFields | string; -export declare type TestType = InterfaceWithFields | FakePackageType; +export type TestType = InterfaceWithFields | FakePackageType; export {}; diff --git a/tests/e2e/test-cases/include-exclude-in-tsconfig/output.d.ts b/tests/e2e/test-cases/include-exclude-in-tsconfig/output.d.ts index da55a56..ad0b395 100644 --- a/tests/e2e/test-cases/include-exclude-in-tsconfig/output.d.ts +++ b/tests/e2e/test-cases/include-exclude-in-tsconfig/output.d.ts @@ -1,3 +1,3 @@ -export declare type FooBar = number; +export type FooBar = number; export {}; diff --git a/tests/e2e/test-cases/inline-from-deps/output.d.ts b/tests/e2e/test-cases/inline-from-deps/output.d.ts index e764a05..7d5835e 100644 --- a/tests/e2e/test-cases/inline-from-deps/output.d.ts +++ b/tests/e2e/test-cases/inline-from-deps/output.d.ts @@ -11,9 +11,9 @@ declare class SomeClass { private x; public constructor(); } -export declare type TestType = Interface | Type; +export type TestType = Interface | Type; export declare class MyClass extends SomeClass { } -export declare type ReExportedTypes = Derived; +export type ReExportedTypes = Derived; export {}; diff --git a/tests/e2e/test-cases/primitive-generation/output.d.ts b/tests/e2e/test-cases/primitive-generation/output.d.ts index ac307d9..dbc5c0f 100644 --- a/tests/e2e/test-cases/primitive-generation/output.d.ts +++ b/tests/e2e/test-cases/primitive-generation/output.d.ts @@ -1,4 +1,4 @@ -export declare type TypeName = string | number; +export type TypeName = string | number; export interface InterfaceName { prop: number; prop2: TypeName; diff --git a/tests/e2e/test-cases/re-export-default-export-with-same-name/output.d.ts b/tests/e2e/test-cases/re-export-default-export-with-same-name/output.d.ts index a0a42c8..61bbc8b 100644 --- a/tests/e2e/test-cases/re-export-default-export-with-same-name/output.d.ts +++ b/tests/e2e/test-cases/re-export-default-export-with-same-name/output.d.ts @@ -1,4 +1,4 @@ -export declare type ClassNamesFn = () => void; +export type ClassNamesFn = () => void; export declare const classNames: ClassNamesFn; export declare const isPromise: (value: unknown) => boolean; diff --git a/tests/e2e/test-cases/save-jsdoc/output.d.ts b/tests/e2e/test-cases/save-jsdoc/output.d.ts index 7098196..2c306de 100644 --- a/tests/e2e/test-cases/save-jsdoc/output.d.ts +++ b/tests/e2e/test-cases/save-jsdoc/output.d.ts @@ -20,7 +20,7 @@ export interface ExportedInterface { /** * ExportedType JSDoc */ -export declare type ExportedType = string | number; +export type ExportedType = string | number; /** * ExportedConstEnum JSDoc */ diff --git a/tests/e2e/test-cases/several-import-star-from-one-package/output.d.ts b/tests/e2e/test-cases/several-import-star-from-one-package/output.d.ts index 337a7b1..16ecaa8 100644 --- a/tests/e2e/test-cases/several-import-star-from-one-package/output.d.ts +++ b/tests/e2e/test-cases/several-import-star-from-one-package/output.d.ts @@ -2,7 +2,7 @@ import * as firstImport from 'package-with-default-export'; import * as secondImport from 'package-with-default-export'; import * as thirdImportWholeModule from 'package-with-default-export'; -export declare type ExportedType = string | number; +export type ExportedType = string | number; export interface ExportedInterface { field1: typeof firstImport.default; field2: typeof secondImport.default; diff --git a/tests/e2e/test-cases/sort-nodes/output.d.ts b/tests/e2e/test-cases/sort-nodes/output.d.ts index ec42a39..34e4d81 100644 --- a/tests/e2e/test-cases/sort-nodes/output.d.ts +++ b/tests/e2e/test-cases/sort-nodes/output.d.ts @@ -1,14 +1,14 @@ -export declare type ATypeName = string | number; -export declare type BType = number; -/** - * Some description - */ -export declare type ZTypeName = string | null; export interface BInterfaceName { prop: number; prop2: ATypeName; } export interface CInterfaceName { } +export type ATypeName = string | number; +export type BType = number; +/** + * Some description + */ +export type ZTypeName = string | null; export {}; diff --git a/tests/e2e/test-cases/using-custom-types/output.d.ts b/tests/e2e/test-cases/using-custom-types/output.d.ts index 7eb80a6..cc656da 100644 --- a/tests/e2e/test-cases/using-custom-types/output.d.ts +++ b/tests/e2e/test-cases/using-custom-types/output.d.ts @@ -1,5 +1,5 @@ import { InterfaceName } from 'my-library'; -export declare type MyType = InterfaceName | string; +export type MyType = InterfaceName | string; export {};