0.3.37 • Published 10 months ago
typeomatica v0.3.37
Type ø matica
This package is a part of mnemonica project.
Strict Types checker for objects which represent Data Types.
how it works
see test/index.ts
class SimpleBase extends BasePrototype {
stringProp = '123';
};
// nect code line will work properly
simpleInstance.stringProp = '321';
// but next code line will throw TypeError('Type Mismatch')
// @ts-ignore
simpleInstance.stringProp = 123;
That is it. It will be impossible to assign anything else except of:
typeof something === 'string'
to stringProp
in runtime.
As we describe Data Types — please take a peek for tests directory: HERE.
0.3.37
10 months ago
0.3.36
1 year ago
0.3.34
1 year ago
0.3.33
1 year ago
0.3.32
1 year ago
0.3.31
2 years ago
0.3.3
2 years ago
0.3.2
2 years ago
0.3.0
2 years ago
0.3.1
2 years ago
0.2.9
3 years ago
0.2.7
3 years ago
0.2.8
3 years ago
0.2.5
4 years ago
0.2.1
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.1.9
4 years ago
0.1.1
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.5
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.5
4 years ago
0.0.3
4 years ago
0.0.1
4 years ago