GitHub Package
the javascript
04 - Turn off TypeCzech by Not Loading Checking Functions

Another way of turning off PRE & POST function checking with TypeCzech is to not declare any checking functions. But this method needs the below line to ignore the commented out checking function, and not cause a ReferenceError. This is why the example code to the left does not complain.
PRE_check_Person = (typeof PRE_check_Person==='undefined') 
                   ? undefined : PRE_check_Person
Furthermore, the TypeCzech library can also be turned off by not choosing 'LOG-ERRORS' or 'THROW-EXCEPTIONS' in the constructor, and instead having no arguments, or 'NO-CHECKING', as below.
type_czech = TypeCzech()
  OR
type_czech = TypeCzech('NO-CHECKING')
The last option to stop function checking is to not link any functions to the TypeCzech library, as is accomplished by commenting out all type_czech.linkUp() calls. Thus Person will not be linked into TypeCzech, and the PRE checking function will be ignored.
// Person = type_czech.linkUp(Person, PRE_check_Person) )
TypeCzech is loaded and parsed in this page, but does no checking.

Console Output



Contents 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43    101 102 103 201 202 203 204 301 302 303 304 401 402 403 404 501 502 503 504 601 602 603 604    700 701 702 703 704 705 706 707 708 709 710 © 2024 Steen Hansen