(text: string)
| 108 | const decodeJsonOption = Schema.decodeUnknownOption(UnknownFromJsonString); |
| 109 | |
| 110 | const parseJson = (text: string): IntegrationsRegistryData => { |
| 111 | const decoded = decodeJsonOption(text); |
| 112 | if (Option.isNone(decoded)) return undefined; |
| 113 | return decoded.value; |
| 114 | }; |
| 115 | |
| 116 | export const layer = ( |
| 117 | config: IntegrationsRegistryConfig, |