-
Notifications
You must be signed in to change notification settings - Fork 1
#53 basic ts guards #54
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
Conversation
- @shiftcode/logger@3.0.1-pr53.0 - @shiftcode/utilities@4.1.0-pr53.0
- @shiftcode/logger@3.0.1-pr53.1 - @shiftcode/utilities@4.1.0-pr53.1
|
@michaellieberherr you mentioned a ts library once, but I can't remember which one it was. Should we use an existing one or what's your thoughts? |
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.
Pull Request Overview
This PR adds basic TypeScript type guard functions for commonly used type checks including isString, isNumber, isDefined, isDate, isClass, isBoolean, and isArray.
- Introduces seven new type guard functions with proper TypeScript type predicates
- Includes comprehensive test coverage for all guard functions
- Updates package versions and dependencies to support the new functionality
Reviewed Changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/utilities/src/lib/ts-guards/*.ts | Implementation of type guard functions with TypeScript predicates |
| packages/utilities/src/lib/ts-guards/*.spec.ts | Comprehensive test suites for each type guard function |
| packages/utilities/src/index.ts | Exports for the new type guard functions |
| packages/utilities/package.json | Version bump to include new features |
| packages/logger/package.json | Dependency version updates to match utilities package |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
- @shiftcode/logger@3.0.1-pr53.2 - @shiftcode/utilities@4.1.0-pr53.2
- @shiftcode/logger@3.0.1-pr53.3 - @shiftcode/utilities@4.1.0-pr53.3
- @shiftcode/branch-utilities@5.0.1-pr53.0 - @shiftcode/eslint-config-recommended@5.0.1-pr53.0 - @shiftcode/eslint-plugin-rules@4.0.1-pr53.0 - @shiftcode/logger@3.0.1-pr53.4 - @shiftcode/publish-helper@4.1.1-pr53.0 - @shiftcode/utilities@4.1.0-pr53.4
- @shiftcode/branch-utilities@5.0.1-pr53.1 - @shiftcode/eslint-config-recommended@5.0.1-pr53.1 - @shiftcode/eslint-plugin-rules@4.0.1-pr53.1 - @shiftcode/logger@3.0.1-pr53.5 - @shiftcode/publish-helper@4.1.1-pr53.1 - @shiftcode/utilities@4.1.0-pr53.5
|
lgtm ❤️ |
This pull request introduces a new standardized Prettier formatting check across all packages and the CI workflow, along with several improvements to type guard utilities in the
@shiftcode/utilitiespackage. It also includes version bumps and dependency updates for multiple packages. The most important changes are grouped below.Prettier Formatting Standardization:
prettier:checkscript to the rootpackage.jsonand all package-levelpackage.jsonfiles, enabling consistent formatting checks for TypeScript files. [1] [2] [3] [4] [5] [6] [7].github/workflows/main.ymlto run the new Prettier check as part of the build process.Type Guard Utility Enhancements (
@shiftcode/utilities):isArray,isBoolean,isClass,isDate,isDefined,isNumber, andisStringinpackages/utilities/src/lib/ts-guards/, with corresponding exports and tests. [1] [2] [3] [4] [5] [6] [7] [8] [9]