Skip to content

Commit

Permalink
style: use import type for type only imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Pcrab committed Apr 1, 2023
1 parent 4c99a3d commit 3ad806d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/extend/processor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Promise from 'bluebird';
import { Pattern } from 'hexo-util';
import File from '../box/file';
import type File from '../box/file';

interface StoreFunction {
(file: File): any
Expand Down
2 changes: 1 addition & 1 deletion lib/extend/syntax_highlight.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../hexo';
import type Hexo from '../hexo';

export interface HighlightOptions {
// plulgins/filter/before_post_render/backtick_code_block
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/console/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export = function(ctx: Hexo) {
const { console } = ctx.extend;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/filter/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export = (ctx: Hexo) => {
const { filter } = ctx.extend;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/generator/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { exists, createReadStream } from 'hexo-fs';
import Promise from 'bluebird';
import { extname } from 'path';
import { magenta } from 'picocolors';
import warehouse from 'warehouse';
import type warehouse from 'warehouse';

interface Data {
modified: boolean;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/generator/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export = (ctx: Hexo) => {
const { generator } = ctx.extend;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/helper/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export = (ctx: Hexo) => {
const { helper } = ctx.extend;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/highlight/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

module.exports = (ctx: Hexo) => {
const { highlight } = ctx.extend;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/injector/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export = (ctx: Hexo) => {
// eslint-disable-next-line no-unused-vars
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/processor/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export = (ctx: Hexo) => {
const { processor } = ctx.extend;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/renderer/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export = (ctx: Hexo) => {
const { renderer } = ctx.extend;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/tag/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import moize from 'moize';
import Hexo from '../../hexo';
import type Hexo from '../../hexo';

export default (ctx: Hexo) => {
const { tag } = ctx.extend;
Expand Down

0 comments on commit 3ad806d

Please sign in to comment.