Skip to content

Commit 4855ceb

Browse files
chore: use type import
1 parent c968411 commit 4855ceb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type { FileInfo, FileAndDirs } from '../types';
12
import fs from 'fs';
23
import path from 'path';
34
import { MARKDOWN_EXTENSIONS, IGNORED_DIRS } from '..';
4-
import { FileInfo, FileAndDirs } from '../types';
55

66
const separateFilesAndDirs = (fileInfos: Array<FileInfo>): FileAndDirs => ({
77
directories: fileInfos.filter(info => info.stat.isDirectory() && !IGNORED_DIRS.includes(info.name)),

src/lib/get-html-headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { HeaderData, Header } from '../types';
12
import * as md from '@textlint/markdown-to-ast';
23
import * as htmlparser from 'htmlparser2';
3-
import { HeaderData, Header } from '../types';
44

55
const addLinenos = (lines: Array<string>, headers: Array<HeaderData>): Array<Omit<Header, 'rank'> & HeaderData> => {
66
let current = 0;

src/lib/params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SectionInfo, TransformOptions } from '../types';
1+
import type { SectionInfo, TransformOptions } from '../types';
22

33
const getBoolValue = (input: string): boolean => !['false', '0', '', 'no', 'n'].includes(input.trim().toLowerCase());
44
const converter = {

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Stats } from 'fs';
1+
import type { Stats } from 'fs';
22

33
export type TransformOptions = Partial<{
44
mode: string;

0 commit comments

Comments
 (0)