(schema: StringMap, name: string, isInferred: boolean)
| 82 | } |
| 83 | |
| 84 | function getName(schema: StringMap, name: string, isInferred: boolean): [string, boolean] { |
| 85 | if (!isInferred) { |
| 86 | return [name, false]; |
| 87 | } |
| 88 | const title = schema.title; |
| 89 | if (typeof title === "string") { |
| 90 | return [title, false]; |
| 91 | } else { |
| 92 | return [name, true]; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | function checkTypeList(typeOrTypes: any): OrderedSet<string> { |
| 97 | if (typeof typeOrTypes === "string") { |
no outgoing calls
no test coverage detected
searching dependent graphs…