react-to-typescript-definitions
Version:
Create typescript definitions files (d.ts) from react components
23 lines (22 loc) • 438 B
JavaScript
module.exports = function (wallaby) {
return {
files: [
'index.ts',
{pattern: 'tests/**/*.jsx', instrument: false},
'tests/**/*.d.ts'
],
tests: [
'tests/**/*-test.ts'
],
testFramework: 'mocha',
env: {
type: 'node'
},
compilers: {
'**/*.ts': wallaby.compilers.typeScript({
typescript: require('typescript'),
module: 1 // commonjs
})
}
};
};