(typeName: string)
| 228 | } |
| 229 | |
| 230 | function stripOption(typeName: string): string { |
| 231 | return typeName.startsWith("Option<") && typeName.endsWith(">") |
| 232 | ? typeName.slice("Option<".length, -1) |
| 233 | : typeName; |
| 234 | } |
| 235 | |
| 236 | function getUnionVariants(schema: JSONSchema7): JSONSchema7[] | null { |
| 237 | if (schema.anyOf) return schema.anyOf as JSONSchema7[]; |
no outgoing calls
no test coverage detected
searching dependent graphs…