-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] refactor(unstable): change return types in runtime compiler APIs #7496
Conversation
@@ -524,7 +530,10 @@ declare namespace Deno { | |||
rootName: string, | |||
sources?: Record<string, string>, | |||
options?: CompilerOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing Deno.transpileOnly()
in favor of noCheck
option means we need to change options?: CompilerOptions
into:
options?: {
noCheck?: boolean,
compilerOptions?: CompilerOptions
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect there are other non-tsconfig related options that we will want to make in here as well, like import map, so yeah, let's change it.
): Promise<[Diagnostic[] | undefined, Record<string, string>]>; | ||
): Promise<{ | ||
diagnostics: Diagnostic[] | undefined, | ||
emitMap: Record<string, string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to emittedFiles
@@ -524,7 +530,10 @@ declare namespace Deno { | |||
rootName: string, | |||
sources?: Record<string, string>, | |||
options?: CompilerOptions, | |||
): Promise<[Diagnostic[] | undefined, Record<string, string>]>; | |||
): Promise<{ | |||
diagnostics: Diagnostic[] | undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add ignoredCompilerOptions
field
Waiting to close #7225 before finishing this PR |
Stale, I'll open a new PR |
Closes #4752
CC @kitsonk