Skip to content

Commit

Permalink
docs(api): fix array API docs that vanished because of #7798
Browse files Browse the repository at this point in the history
Fix #7979
  • Loading branch information
vkarpov15 committed Jul 18, 2019
1 parent 288993c commit 377227f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/api.js
Expand Up @@ -23,7 +23,7 @@ const files = [
'lib/schematype.js',
'lib/virtualtype.js',
'lib/error/index.js',
'lib/types/array.js'
'lib/types/core_array.js'
];

module.exports = {
Expand Down Expand Up @@ -52,6 +52,9 @@ function parse() {
replace('/index', '');
const lastSlash = name.lastIndexOf('/');
name = name.substr(lastSlash === -1 ? 0 : lastSlash + 1);
if (name === 'core_array') {
name = 'array';
}
const data = {
name: name.charAt(0).toUpperCase() === name.charAt(0) ? name : name.charAt(0).toUpperCase() + name.substr(1),
props: []
Expand Down

0 comments on commit 377227f

Please sign in to comment.