(json?: string)
| 73 | }; |
| 74 | |
| 75 | export const parseJSON = (json?: string): JSONType => { |
| 76 | if (!json) return null; |
| 77 | try { |
| 78 | return JSON.parse(json || ""); |
| 79 | } catch (e) { |
| 80 | return null; |
| 81 | } |
| 82 | }; |
| 83 | |
| 84 | export const createSchemaElseUndefined = ( |
| 85 | json: JSONType |
no outgoing calls
no test coverage detected