microsoft / microsoft/TypeScript
Make executeCommandLine a public compiler API
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia leggendo src/executeCommandLine/executeCommandLine.ts e le dichiarazioni pubbliche in typescript.d.ts. Determina le interfacce e la superficie di executeCommandLine che dovrebbero essere esposte, preservando il comportamento di tsc. Il lavoro è completato quando la funzione e le interfacce corrispondenti sono disponibili tramite l’API TypeScript pubblica.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- compilers
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100