nyce
JavaScript component interface definition and adherence utility
// in someModule.jsexports { /* ... */ };exportsaProp = {}; // elsewhereconst nyce = ;const someModule = ; const myInterface = index: type: 'function' args: 'foo' 'bar' // By default, for function validation, nyce will only check the number // of arguments present with no regard to naming. If you would like to // fail validation if the names of the function arguments don't match the names // of the the interface arguments set this to true enforceArgNaming: true aProp: type: 'object' ; nyce ;