Closed drohan2536 closed 4 months ago
The recent changes in the common
package involve improving TypeScript typing, adding scripts for cleanup, and specifying strict type checks. Interfaces for handling multipart data and file uploads were updated, along with casting environmental variables to strings in the FileUploadService
. Finally, the tsconfig.json
was enhanced with stricter type-checking settings to improve code reliability.
File Path | Change Summary |
---|---|
packages/common/package.json |
Added "types" entry, updated "typings", "files", added "clean" script, and added two type dependencies. |
packages/common/src/interfaces/fastify-multipart.d.ts |
Introduced ParsedPart and MultipartFields interfaces for multipart form data. |
packages/common/src/interfaces/file-upload.interface.ts |
Switched to direct import of MultipartFields and updated its usage in MultipartFile interface. |
packages/common/src/services/file-upload.service.ts |
Cast environment variables to strings and specified err parameter type as Error | null . |
packages/common/tsconfig.json |
Added declarationDir , enabled stricter type-checking settings, and adjusted include/exclude paths. |
In a file of codes, neat and bright, Types and scripts dance in the light, Stricter checks, now in sight, Bugs and errors take their flight. Common's better, swift as breeze, Coding now is such a tease! 🐇✨
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are currently opted into early access features by default.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Checklist
Make sure you have
@nestjs/swagger
decorators wherever requiredDescription
type declarations
for all packages within Stencil.tsconfig.json
to generate.d.ts
files and included them in the build process.package.json
to reference the generated type definitions.Demo
https://drive.google.com/uc?id=1so9yliRJ_74WfFNqSrhaWhK3rWWta6CP&export=download
Summary by CodeRabbit
New Features
Chores
"clean"
script to the package configuration.Refactor
Documentation
tsconfig.json
settings to improve code quality and consistency.