From 4ed085150133dc123b05fae93b9b3856fad018c1 Mon Sep 17 00:00:00 2001 From: Sainan Date: Wed, 19 Mar 2025 10:31:58 +0100 Subject: [PATCH] Leverage json-with-bigint's typings --- src/helpers/stringHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/stringHelpers.ts b/src/helpers/stringHelpers.ts index bba75fca..aee4355c 100644 --- a/src/helpers/stringHelpers.ts +++ b/src/helpers/stringHelpers.ts @@ -2,7 +2,7 @@ import { JSONParse } from "json-with-bigint"; export const getJSONfromString = (str: string): T => { const jsonSubstring = str.substring(0, str.lastIndexOf("}") + 1); - return JSONParse(jsonSubstring) as T; + return JSONParse(jsonSubstring); }; export const getSubstringFromKeyword = (str: string, keyword: string): string => {