animate/webGl/my-threejs-test/node_modules/@mischnic/json-sourcemap/dist/index.js.flow

29 lines
483 B
Plaintext
Raw Normal View History

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