-
Notifications
You must be signed in to change notification settings - Fork 470
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
Move to TS #954
base: main
Are you sure you want to change the base?
Move to TS #954
Conversation
… into ts-2 � Conflicts: � types/queries.d.ts
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit c4fda2b:
|
@@ -29,12 +33,14 @@ function getCodeFrame(frame) { | |||
|
|||
let rawFileContents = '' | |||
try { | |||
rawFileContents = readFileSync(filename, 'utf-8') | |||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | |||
rawFileContents = readFileSync?.(filename, 'utf-8') |
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 would no longer throw if readFileSync
is not callable.
Generally, don't change any runtime when porting to TypeScript. Use type casting instead so that we know where we might want to work on.
Hi, do you think you can work on these merge conflicts or do you need help? |
What:
Move code to TS
Why:
How:
Checklist:
docs site