(value: SchemaText | undefined)
| 41 | type SchemaText = string | Option.Option<string>; |
| 42 | |
| 43 | const schemaText = (value: SchemaText | undefined): string | undefined => { |
| 44 | if (typeof value === "string") return value; |
| 45 | if (Option.isOption(value) && Option.isSome(value)) { |
| 46 | return value.value; |
| 47 | } |
| 48 | return undefined; |
| 49 | }; |
| 50 | |
| 51 | // --------------------------------------------------------------------------- |
| 52 | // Ref resolution — lazy, only on expand |
no outgoing calls
no test coverage detected