( annotations: Schema.Annotations.Annotations | undefined )
| 49 | } |
| 50 | |
| 51 | function renderAnnotations( |
| 52 | annotations: Schema.Annotations.Annotations | undefined |
| 53 | ): string | undefined { |
| 54 | if (annotations === undefined) return undefined |
| 55 | const entries: Array<string> = [] |
| 56 | for (const [key, value] of Object.entries(annotations)) { |
| 57 | if (InternalAnnotations.annotationExcludedKeys.has(key)) continue |
| 58 | const rendered = renderEmittableAnnotation(value) |
| 59 | if (rendered !== undefined) entries.push(`${formatPropertyKey(key)}: ${rendered}`) |
| 60 | } |
| 61 | return entries.length === 0 ? undefined : `{ ${entries.join(", ")} }` |
| 62 | } |
| 63 | |
| 64 | /** @internal */ |
| 65 | export function sanitizeJavaScriptIdentifier(input: string): string { |
no test coverage detected