Skip to content

Releases: rohit1901/ts-gen-typeguards

v2.0.0: type inference and transformation

04 Sep 14:28
55efb0d
Compare
Choose a tag to compare
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

25 Aug 13:32
888795c
Compare
Choose a tag to compare
updated readme and PR Template

v1.0.9: fix: 👷 Optional types and typeguard signature

25 Aug 13:22
61df43c
Compare
Choose a tag to compare
- fixed optional types -> corrected typeguard checks
- fixed typeguard signatures
- corrected tests
- ⚖️ added code of conduct and contributing guidelines

v1.0.8: 🔨 Fix: Generic Types

24 Aug 20:40
25c24e6
Compare
Choose a tag to compare
- unions, intersections of generic types, added custom parameters to deep generic types.
- Added tests for generated guards

v1.0.7: Refactoring 🔨

22 Aug 14:55
e01a287
Compare
Choose a tag to compare
# 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

20 Aug 10:46
9b82959
Compare
Choose a tag to compare
  • Added ts-raw-utils ⚡
  • Changed workflow to correctly release version 👍

v1.0.5: Merge pull request #41 from rohit1901/release/patch

19 Aug 11:44
1ba4262
Compare
Choose a tag to compare

v1.0.4: Merge pull request #39 from rohit1901/release/patch

18 Aug 23:30
1b75134
Compare
Choose a tag to compare