Releases: woutervh-/typescript-is
Releases · woutervh-/typescript-is
v0.19.0
New Features
- Add
transformNonNullExpressions
which allows you to generate non-null assertions with the non-null assertion operator!
(#100) - Async methods will now return rejected promises when using
ValidateClass
andAssertType
(#105) - Add option to generate code without error messages, resulting in smaller generated code size (#108)
- Make generated function names deterministic, reducing the number of files changes in watch mode (#114)
Breaking Changes
None.
Bug fixes
- Fix intersection types in combination with
disallowSuperfluousProperties
(#112)
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.1
v0.17.0
New Features
- Warning message in README about
ts-loader
withtranspileOnly
flag (#69 thanks to @b-zurg) - Replaced
ignoreFunction
flag withfunctionBehavior
option.functionBehavior
can be used to ignore functions, do a simpletypeof
check on functions, or throw compile-time errors.
Breaking Changes
None.
Bug fixes
- Fixed bug with type aliases that have generics (#59)
- Fixed bug where
null
would not be considered valid when used in combination with thestrictNullChecks
compiler option (#73) - Fixed wrong type definition of
TypeGuardError
(#74) - Fixed bug where parameters type checks would cause an error if they are preceded by parameters that don't have a type check (#75)
v0.16.3
v0.16.2
v0.16.1
New Features
- Merged PR #64 (@mitko-slapdash). Error messages will now contain the found data at the path. Example:
import { assertEquals } from 'typescript-is';
try {
assertEquals<{ foo: number }>({});
} catch (error) {
console.log(error.message); // validation failed at $: expected 'foo' in object, found: {}
}
Breaking Changes
None.
Bug fixes
None.