(text: string)
| 22 | * @returns The parsed JsonValue from the JSONC string. |
| 23 | */ |
| 24 | export function parse(text: string): JsonValue { |
| 25 | if (new.target) { |
| 26 | throw new TypeError( |
| 27 | "Cannot create an instance: parse is not a constructor", |
| 28 | ); |
| 29 | } |
| 30 | return new JsoncParser(text).parse(); |
| 31 | } |
| 32 | |
| 33 | type TokenType = |
| 34 | | "BeginObject" |
no test coverage detected