Skip to content

Conversation

@InosRahul
Copy link
Contributor

@InosRahul InosRahul commented Dec 5, 2025

Added:

  • types/global.d.ts - Shared type declaration for window.NutrientViewer
  • tsconfig.json - TypeScript config for type-checking all examples
  • package.json - With npm run typecheck script
  • annotations/watermark-annotations/ - Reference example
  • annotations/flatten-annotations-on-create/ - Another example

CI:

  • Run typechecking on playground examples in CI

@InosRahul InosRahul changed the title Added shared types folder for playground examples Added shared types folder for playground examples & typechecking on CI Dec 5, 2025
Copy link
Contributor

@eli7pm eli7pm left a comment

Choose a reason for hiding this comment

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

LGTM 🙌

Copy link
Contributor

@miguelcalderon miguelcalderon left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot for taking care of this! 🙇

jobs:
typecheck:
runs-on: ubuntu-latest
timeout-minutes: 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit 10 min is a bit much for a type check time out no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in this commit: 6d86220

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
Copy link
Collaborator

@veroo-m veroo-m Dec 10, 2025

Choose a reason for hiding this comment

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

how about always using latest version here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes makes sense. Added LTS version in this commit: 6d86220

Copy link
Contributor

@miguelcalderon miguelcalderon left a comment

Choose a reason for hiding this comment

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

Commented instead of approving 🙈 Approved now

@InosRahul InosRahul requested a review from veroo-m December 11, 2025 12:40
@InosRahul InosRahul merged commit 495efc5 into master Dec 15, 2025
3 checks passed
@InosRahul InosRahul deleted the rahul/add-types branch December 15, 2025 13:34
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.

5 participants