(config: unknown, textValue: string)
| 45 | }; |
| 46 | |
| 47 | const getNodeConfig = <T>(config: unknown, textValue: string): T | undefined => { |
| 48 | if (config !== undefined) { |
| 49 | return config as T; |
| 50 | } |
| 51 | if (!textValue) { |
| 52 | return undefined; |
| 53 | } |
| 54 | |
| 55 | try { |
| 56 | return JSON.parse(textValue) as T; |
| 57 | } catch { |
| 58 | return undefined; |
| 59 | } |
| 60 | }; |
| 61 | |
| 62 | const getRowsForPackedFile = ( |
| 63 | packedFile: Pick<PackedFile, "schemaFields" | "tableSchema">, |
no outgoing calls
no test coverage detected