feat: add TypeScript typings for AlgoScope SDK#781
Conversation
|
Someone is attempting to deploy a commit to the adityapaul2603-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for astounding-nougat-da0f6a ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reached
Next review available in: 51 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Pull Request Summary
Title: feat: add TypeScript typings for AlgoScope SDK
What changed?
This pull request adds full TypeScript type definition files for the public AlgoScope utilities:
index.jswhich exports modules fromsrc/lib/(utils,favorites,testCaseStore,version).index.d.tswhich declares the TypeScript types, helper function signatures, parameter interfaces, and return types for the exported helpers.tsconfig.jsondefining compiler settings for type-checking.package.jsonto configure"main": "index.js", publish typings via"types": "index.d.ts", add a"type-check"script, and addtypescriptas a devDependency.Run Type Checker (TypeScript)check step into the CI workflow (.github/workflows/pipelines.yml) under thecode-qualityjob to automatically validate type safety for incoming PRs.Why is this needed?
TypeScript consumer projects importing AlgoScope modules currently lack proper typings, leading to missing autocomplete/IntelliSense in modern IDEs and compiler type resolution warnings. This PR resolves #633.
Closes #633
Type of Change
feat- New user-facing feature or algorithm capabilitybuild- Build system, dependency, or packaging changeci- GitHub Actions, Docker, Vercel, or release automation changeRelease Notes
Release note category:
Release note entry:
index.d.ts) for public utility functions and index entry points, integrating type checks into the CI pipeline.Testing and Verification
npm ciornpm installnpm run buildhttp://localhost:5173Additional testing notes:
npm run type-check(tsc check) locally which compiles cleanly with zero typing declaration errors.UI Evidence
Not applicable (non-visual code structure/SDK change).
CI/CD and Deployment Impact
typescript)