-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: add missing tsd on application #5406
Conversation
WalkthroughThis pull request upgrades the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant EggCore
participant Server
participant BackgroundTask
%% Server initialization:
Server->>EggCore: Initialize server
EggCore-->>Server: onServer(server)
%% Processing client request:
Client->>EggCore: Send request
EggCore->>Server: Process request
Server-->>EggCore: Return response
alt Error Encountered
EggCore->>EggCore: onClientError(error, socket)
end
%% Running a background task:
EggCore->>BackgroundTask: runInBackground(task)
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
src/lib/application.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-eggache". (The package "eslint-plugin-eggache" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-eggache" was referenced from the config file in ".eslintrc » eslint-config-egg/typescript » ./index.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. test/index.test-d.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-eggache". (The package "eslint-plugin-eggache" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-eggache" was referenced from the config file in ".eslintrc » eslint-config-egg/typescript » ./index.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (11)
🔇 Additional comments (4)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
PR Overview
This PR adds missing TypeScript declaration definitions to extend the EggCore interface and updates test types accordingly.
- Extend EggCore with additional overrides and utilities in the application module.
- Update test imports and add type assertions for new application configuration types.
Reviewed Changes
File | Description |
---|---|
src/lib/application.ts | Adds TypeScript declarations to extend EggCore with new overrides |
test/index.test-d.ts | Updates test type imports and assertions to include EggAppConfig and PowerPartial |
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #5406 +/- ##
==========================================
+ Coverage 94.91% 94.93% +0.01%
==========================================
Files 40 40
Lines 3774 3787 +13
Branches 352 380 +28
==========================================
+ Hits 3582 3595 +13
Misses 192 192 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
[skip ci] ## [4.0.10](v4.0.9...v4.0.10) (2025-03-10) ### Bug Fixes * add missing tsd on application ([#5406](#5406)) ([8fa4aec](8fa4aec))
Summary by CodeRabbit
Chores
New Features
Tests