UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

12 lines (11 loc) 317 B
export declare class JSONParsingError extends Error { constructor({ jsonError, json5Error, contents, }: { jsonError: Error; json5Error: Error; contents: string; }); } /** * parse json with support for json5, when needed */ export declare const parseJSON: <T>(contents: string) => T;