(name: string)
| 2810 | } |
| 2811 | |
| 2812 | function signatureLocalName(name: string): string { |
| 2813 | const sanitized = name.replace(/[^A-Za-z0-9_$]/g, "_") |
| 2814 | return `_${sanitized === "" ? "api" : sanitized}` |
| 2815 | } |
| 2816 | |
| 2817 | function signatureExportName(name: string): string { |
| 2818 | return /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(name) ? name : JSON.stringify(name) |
no test coverage detected