UNPKG

@walletpass/pass-js

Version:

Apple Wallet Pass generating and pushing updates from Node.js

10 lines 510 B
/** * Removes JavaScript-style line and block comments from JSON text. * * Comments are replaced with whitespace instead of deleted so JSON.parse error * positions still point near the original source. String literals are copied * untouched, so `//` and `/*` inside field values are preserved. Malformed * block comments are left unchanged so JSON.parse remains the syntax authority. */ export declare function stripJsonComments(source: string): string; //# sourceMappingURL=strip-json-comments.d.ts.map