repositories / will
will
owned by admin
src/shared/json.ts
Rawexport function safeParse<T>(text: string): T | undefined {
try {
return JSON.parse(text) as T
} catch {
return undefined
}
}
export function safeParse<T>(text: string): T | undefined {
try {
return JSON.parse(text) as T
} catch {
return undefined
}
}