import { ParsingMetadata } from 'root/app/log-parser/model' ; import { Request } from 'root/app/request' ; export async function getParsingMetadata ( ) { const res = await Request . get ( `/mtg/json/parsing_metadata_new2.json` ) ; if ( typeof res === 'string' ) { throw new Error ( 'Cannot parse remote metadata' ) ; } return res as ParsingMetadata ; }