Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

bartlomieju
Copy link
Member

Closes #4752

CC @kitsonk

@bartlomieju bartlomieju changed the title refactor(unstable): change return types in runtime compiler APIs [WIP] refactor(unstable): change return types in runtime compiler APIs Sep 15, 2020
@@ -524,7 +530,10 @@ declare namespace Deno {
rootName: string,
sources?: Record<string, string>,
options?: CompilerOptions,
Copy link
Member Author

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
}

Copy link
Contributor

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>
Copy link
Member Author

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,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add ignoredCompilerOptions field

@bartlomieju
Copy link
Member Author

Waiting to close #7225 before finishing this PR

@bartlomieju
Copy link
Member Author

Stale, I'll open a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor runtime compiler APIs
2 participants