(value: string)
| 546 | } |
| 547 | |
| 548 | function identifierPart(value: string) { |
| 549 | return value |
| 550 | .split(/[^A-Za-z0-9]+/) |
| 551 | .filter(Boolean) |
| 552 | .map((part) => `${part[0]?.toUpperCase() ?? ""}${part.slice(1)}`) |
| 553 | .join("") |
| 554 | } |
| 555 | |
| 556 | function structuralType(schema: Schema.Top) { |
| 557 | const document = SchemaRepresentation.toCodeDocument(SchemaRepresentation.fromASTs([schema.ast])) |