Add basic CompletionViewer

This commit is contained in:
2020-09-28 12:42:48 +05:30
parent 73dcd7851c
commit dae87ba6cc
12 changed files with 218 additions and 33 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import { Token } from "../types/prism-types";
interface TMappingELement {
export interface TMappingELement {
start: number;
end: number;
ref: { current: HTMLElement | null };
}
interface TSourceMapping {
export interface TSourceMapping {
mappingArray: Array<TMappingELement>;
lastEnd: number;
registerToken(t: Token): (ele: HTMLElement | null) => void;