Function Contracts
back to Contracts
Method Contract
(TreatJS 1.x)
Description
MethodContract ( objectContract, contract, context );
Parameters
- objectContract
- Object Contract.
- range
- Range Contract.
- context
- This Contract.
Simple Method Contract
(TreatJS 1.x)
Description
SimpleMethodContract ( [contract1[, contract2[, ...]]], contractn, contractm );
Parameters
Advanced Method Contract
(TreatJS 1.x)
Description
AdvancedMethodContract ( domain, range, context[, strict] );