Releases: rohit1901/ts-gen-typeguards
Releases · rohit1901/ts-gen-typeguards
v2.0.0: type inference and transformation
type inference implemented. Now intersection types in your TypeScript code will be transformed into type guard signatures. This functionality can help you infer type guard signatures for complex types, making your TypeScript code more expressive and maintainable. ```typescript const inputCode = ` type IntersectionType = TypeA & TypeB; type TypeA = { a: string }; type TypeB = { b: number }; `; const transformedCode = transformer(inputCode); console.log(transformedCode); // type IntersectionType = {}; // type TypeA = { a: string }; // type TypeB = { b: number }; ```
v1.0.10
updated readme and PR Template
v1.0.9: fix: 👷 Optional types and typeguard signature
- fixed optional types -> corrected typeguard checks - fixed typeguard signatures - corrected tests - ⚖️ added code of conduct and contributing guidelines
v1.0.8: 🔨 Fix: Generic Types
- unions, intersections of generic types, added custom parameters to deep generic types. - Added tests for generated guards
v1.0.7: Refactoring 🔨
# Refactoring 🔨 - Fixed small issue with LiteralTypes. - removed typeof value === 'object' check from KeywordTypes - Added checks for any, unknown, never types; still pending - fixed false import path - updated fileOps 📝 - updated prettierrc - updated tsConfig - updated package 📦 dependencies # Any and Unknown types ❓ - when any, unknown, never types are encountered, the typeguard generates only a null check # Tests 🧪 - Fixed tests - added new tests for actual generated values
v1.0.6 Added new dependencies
- Added ts-raw-utils ⚡
- Changed workflow to correctly release version 👍
v1.0.5: Merge pull request #41 from rohit1901/release/patch
v1.0.4: Merge pull request #39 from rohit1901/release/patch
Updated workflow