Releases: p4ck493/ts-is
+ ~900 function
New declared function in interface and add three new functions to validate: positive, negative number and infinity value of variable.
v3.0.7
3.0.7
v3.0.2
3.0.2
1.0.0
New wrapper for connect words, example: Is.Null.Or.Undefined, Is.All.PersonModel.Or.AddressModel.Or.AnotherModel
0.0.2
New functions and more tests
0.0.1
What's new?
Templates:
Is.[ModelName/ClassName]
Is.Not.[ModelName/ClassName]
Is.All.[ModelName/ClassName]
Is.All.Not.[ModelName/ClassName]
Now you can write like this:
@RegisterInIs()
class PersonModel {
}
@RegisterInIs({
className: 'Address'
})
class AddressModel {
}
Is.Person(new PersonModel()) // Returns true
Is.PersonModel(new Address()) // Returns false
Is.Not.PersonModel(new PersonModel()) // Returns false
Is.Not.PersonModel(new Address()) // Returns true
Is.All.PersonModel([new PersonModel(), new PersonModel()]) // Returns true
Is.All.PersonModel([new Address(), new PersonModel()]) // Returns false
Is.All.Not.Address([new PersonModel(), new PersonModel()]) // Returns true
Is.All.Not.Address([new Address(), new PersonModel()]) // Returns true
Is.All.Not.Address([new Address(), new Address()]) // Returns false
0.0.0
574r7up