Skip to content

Commit 1edb22b

Browse files
fix typo
1 parent e2df922 commit 1edb22b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/core/src/file.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { LRUCache } from "lru-cache";
22

33
import { highlighter } from "./highlighter";
44

5-
import type { ATS } from "./highlighter";
5+
import type { AST } from "./highlighter";
66

7-
const map = new LRUCache<string, File>({ max: 50 });
7+
const map = new LRUCache<string, File>({ max: 30 });
88

99
export type SyntaxNode = {
1010
type: string;
@@ -24,7 +24,7 @@ export type SyntaxLine = {
2424
};
2525

2626
export class File {
27-
ast?: ATS;
27+
ast?: AST;
2828

2929
rawFile: Record<number, string> = {};
3030

packages/core/src/highlighter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ lowlight.register("vue", function hljsDefineVue(hljs) {
4848
};
4949
});
5050

51-
export type ATS = ReturnType<typeof lowlight.highlight>;
51+
export type AST = ReturnType<typeof lowlight.highlight>;
5252

5353
export const highlighter = lowlight as typeof lowlight & {
5454
maxLineToIgnoreSyntax: number;

0 commit comments

Comments
 (0)