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: setup TypeScript type checking #208

Merged
merged 7 commits into from
May 3, 2024
Merged

chore: setup TypeScript type checking #208

merged 7 commits into from
May 3, 2024

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented May 2, 2024

  1. Configure TypeScript checking (locally and as part of the CI)
  2. Fix TypeScript errors

See space-meridian/roadmap#80

The content of tsconfig.json is from station-core:
https://github.com/filecoin-station/core/blob/01e9a9f6169c6df5dc152bf7d89b04bade3e5d70/tsconfig.json)

Out of scope/follow-up issues:

@bajtos bajtos requested a review from juliangruber May 2, 2024 14:53
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

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

As far as I understand typescript, lgtm, and thank you for kicking this off!

bin/spark-evaluate.js Outdated Show resolved Hide resolved
bajtos added 3 commits May 3, 2024 10:18
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos marked this pull request as ready for review May 3, 2024 08:22
@bajtos
Copy link
Member Author

bajtos commented May 3, 2024

@juliangruber added a few more commits to fix the remaining issue and address your comment.

The PR is ready for final review and landing.

@bajtos bajtos enabled auto-merge (squash) May 3, 2024 08:23
@@ -2,6 +2,7 @@ import assert from 'node:assert'
import * as Sentry from '@sentry/node'
import { preprocess } from './lib/preprocess.js'
import { evaluate } from './lib/evaluate.js'
// TODO: implement typings - see https://github.com/filecoin-station/on-contract-event/issues/2
Copy link
Member

Choose a reason for hiding this comment

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

I think we should switch to ethers@6 instead

@bajtos bajtos merged commit a952637 into main May 3, 2024
5 checks passed
@bajtos bajtos deleted the setup-tsc branch May 3, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants