-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
base: main
Are you sure you want to change the base?
chore: add more TS/JS types #24472
Conversation
- Add missing internal file mappings - Fix some obvious TS type errors
tools/core_ops.d.ts
Outdated
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; |
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.
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.
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.
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.
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.
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",
@marvinhagemeister do you want to rebase this one? |
@marvinhagemeister bump |
There are more type errors left to fix, but this gets rid of a good chunk already.