(name: string)
| 2880 | } |
| 2881 | |
| 2882 | function signatureLocalName(name: string): string { |
| 2883 | const sanitized = name.replace(/[^A-Za-z0-9_$]/g, "_") |
| 2884 | return `_${sanitized === "" ? "api" : sanitized}` |
| 2885 | } |
| 2886 | |
| 2887 | function signatureExportName(name: string): string { |
| 2888 | return /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(name) ? name : JSON.stringify(name) |
no test coverage detected