animate/webGl/my-threejs-test/node_modules/@mischnic/json-sourcemap/dist/index.d.ts

30 lines
449 B
TypeScript
Raw Normal View History

2024-06-24 09:24:00 +00:00
export type Position = {
line: number;
column: number;
pos: number;
};
export type Mapping =
| {
value: Position;
valueEnd: Position;
}
| {
value: Position;
valueEnd: Position;
key?: Position;
keyEnd?: Position;
};
export function parse(
json: string,
reviver?: (key: any, value: any) => any,
options?: {
tabWidth?: number;
dialect?: "JSON5" | "JSON";
}
): {
data: any;
pointers: Record<string, Mapping>;
};