Escape a value as a TypeScript string literal (handles quotes/newlines).
(value: string)
| 19 | |
| 20 | /** Escape a value as a TypeScript string literal (handles quotes/newlines). */ |
| 21 | function tsString(value: string): string { |
| 22 | return JSON.stringify(value) |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Compile a JSON Schema into a TypeScript type via `json-schema-to-typescript`. |
no outgoing calls
no test coverage detected