Skip to content

Releases: p4ck493/ts-is

+ ~900 function

15 Jan 22:51
Compare
Choose a tag to compare

New declared function in interface and add three new functions to validate: positive, negative number and infinity value of variable.

v3.0.7

16 Dec 09:41
Compare
Choose a tag to compare
3.0.7

v3.0.2

05 Dec 13:03
Compare
Choose a tag to compare
3.0.2

1.0.0

27 Jun 15:39
Compare
Choose a tag to compare

New wrapper for connect words, example: Is.Null.Or.Undefined, Is.All.PersonModel.Or.AddressModel.Or.AnotherModel

0.0.2

21 Jun 21:05
Compare
Choose a tag to compare

New functions and more tests

0.0.1

19 Jun 21:51
Compare
Choose a tag to compare

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

17 Jun 21:38
Compare
Choose a tag to compare

574r7up