Luigit
repositories / will

will

owned by admin

src/shared/json.ts

Raw
export function safeParse<T>(text: string): T | undefined {
  try {
    return JSON.parse(text) as T
  } catch {
    return undefined
  }
}