diff --git a/src/utils/strip-json-comments.ts b/src/utils/strip-json-comments.ts index 2e8d39d..96101fd 100644 --- a/src/utils/strip-json-comments.ts +++ b/src/utils/strip-json-comments.ts @@ -34,12 +34,6 @@ export function stripJsonComments( jsonString: string, { whitespace = true, trailingCommas = false }: StripJsonCommentsOptions = {}, ): string { - if (typeof jsonString !== "string") { - throw new TypeError( - `Expected argument \`jsonString\` to be a \`string\`, got \`${typeof jsonString}\``, - ); - } - const strip = whitespace ? stripWithWhitespace : stripWithoutWhitespace; let isInsideString = false;