UNPKG

675 BTypeScriptView Raw
1import { IParser } from "import-sort-parser";
2import { IStyle } from "import-sort-style";
3export interface ISortResult {
4 code: string;
5 changes: ICodeChange[];
6}
7export interface ICodeChange {
8 start: number;
9 end: number;
10 code: string;
11 note?: string;
12}
13export default function importSort(code: string, rawParser: string | IParser, rawStyle: string | IStyle, file?: string, options?: object): ISortResult;
14export declare function sortImports(code: string, parser: IParser, style: IStyle, file?: string, options?: object): ISortResult;
15export declare function applyChanges(code: string, changes: ICodeChange[]): string;
16//# sourceMappingURL=index.d.ts.map
\No newline at end of file