Skip to content

Commit

Permalink
style: fix consistent type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Mar 20, 2023
1 parent bb98b55 commit 46f2edf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/ebec/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* view the LICENSE file that was distributed with this source code.
*/

import { Options } from './type';
import type { Options } from './type';
import { buildMessage, buildOptions, hasOwnProperty } from './utils';

export class BaseError extends Error {
Expand Down
2 changes: 1 addition & 1 deletion packages/ebec/src/utils/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* view the LICENSE file that was distributed with this source code.
*/

import { Options } from '../type';
import type { Options } from '../type';

export function buildMessage(
data?: string | Error | Options,
Expand Down
2 changes: 1 addition & 1 deletion packages/ebec/src/utils/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { merge } from 'smob';
import { Options } from '../type';
import type { Options } from '../type';

/**
* Deep merge two objects.
Expand Down
3 changes: 2 additions & 1 deletion packages/ebec/test/unit/module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* view the LICENSE file that was distributed with this source code.
*/

import { BaseError, Options } from '../../src';
import type { Options } from '../../src';
import { BaseError } from '../../src';

describe('src/module.ts', () => {
it('should create instance with message', () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/ebec/test/unit/utils/error-options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
* view the LICENSE file that was distributed with this source code.
*/

import type { Options } from '../../../src';
import {
BaseError, Options, buildOptions, mergeOptions,
BaseError, buildOptions, mergeOptions,
} from '../../../src';

describe('src/utils/error-options.ts', () => {
Expand Down

0 comments on commit 46f2edf

Please sign in to comment.