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

chore: add more TS/JS types #24472

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

chore: add more TS/JS types #24472

wants to merge 6 commits into from

Conversation

marvinhagemeister
Copy link
Contributor

@marvinhagemeister marvinhagemeister commented Jul 8, 2024

  • Add missing internal file mappings
  • Fix some obvious TS type errors

There are more type errors left to fix, but this gets rid of a good chunk already.

- Add missing internal file mappings
- Fix some obvious TS type errors
Comment on lines 1 to 5
import { Buffer } from "node:buffer";

export const op_add_main_module_handler: any;
export const op_base64_atob: any;
export const op_base64_btoa: any;
Copy link
Member

Choose a reason for hiding this comment

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

This will get out-of-sync really quickly with deno_core changes. It's probably better than nothing, but I wonder if we can force TSC to use typings coming from deno_core package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair point. I've reverted that part of the PR to keep the ops untyped for now as I couldn't find an obvious solution to ensure that the ops types don't go out of sync.

Copy link
Member

@lucacasonato lucacasonato Jul 9, 2024

Choose a reason for hiding this comment

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

With denoland/deno_core#814, remove this file and replace the import map entry with:

    "ext:core/mod.js": "../../deno_core/core/core.d.ts",

@bartlomieju
Copy link
Member

@marvinhagemeister do you want to rebase this one?

@bartlomieju
Copy link
Member

@marvinhagemeister bump

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.

None yet

3 participants