Update babel-types README (#4905) [skip ci]

This commit is contained in:
Sven SAULEAU
2016-11-29 02:22:59 +01:00
committed by Henry Zhu
parent db67d7fdce
commit 51e8fd1868
2 changed files with 841 additions and 140 deletions

View File

@@ -65,7 +65,10 @@ function getType(validator) {
throw err;
}
Object.keys(types.BUILDER_KEYS).sort().forEach(function (key) {
readme.push('### t.' + key[0].toLowerCase() + key.substr(1) + '(' + types.BUILDER_KEYS[key].join(', ') + ')');
readme.push('### ' + key[0].toLowerCase() + key.substr(1));
readme.push('```javascript');
readme.push('t.' + key[0].toLowerCase() + key.substr(1) + '(' + types.BUILDER_KEYS[key].join(', ') + ')');
readme.push('```');
readme.push('');
readme.push('See also `t.is' + key + '(node, opts)` and `t.assert' + key + '(node, opts)`.');
readme.push('');
@@ -108,6 +111,9 @@ Object.keys(types.BUILDER_KEYS).sort().forEach(function (key) {
}
readme.push(' - ' + fieldDescription.join(''));
});
readme.push('');
readme.push('---');
readme.push('');
});