microsoft / microsoft/TypeScript
Make executeCommandLine a public compiler API
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
Search Terms
executeCommandLine, callback, tsc
Suggestion
Make the executeCommandLine function and corresponding interfaces part of the public APIs provided by typescript.d.ts.
Use Cases
We are currently building a customized TypeScript compiler that performs additional security checks to proactively prevent XSS vulnerabilities. We would like the customized compiler to mimic the behavior of tsc as much as possible, but it seems not reasonable to duplicate the code in src/executeCommandLine/executeCommandLine.ts. Making executeCommandLine a public API solves our problem.
We have considered implementing the checks as ESLint passes. But it is not practical for some of our users to deploy ESLint in a short term.
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, src/executeCommandLine/executeCommandLine.ts und die öffentlichen Deklarationen in typescript.d.ts zu lesen. Bestimme die Interfaces und die Oberfläche von executeCommandLine, die offengelegt werden müssten, wobei das Verhalten von tsc erhalten bleibt. Als erledigt gilt die Aufgabe, wenn die Funktion und die entsprechenden Interfaces über die öffentliche TypeScript API verfügbar sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- compilers
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100