DefinitelyTyped/types/apidoc/apidoc-tests.ts
rigwild cdcf798f8b
🤖 Merge PR #46474 [@types/apidoc] Fix wrong args + add src param by @rigwild
* Update apidoc-tests.ts

* Fix apidoc argument typings

* Update apidoc-tests.ts

* Update index.d.ts

* Update apidoc-tests.ts
2020-08-02 07:27:41 -04:00

62 lines
1.2 KiB
TypeScript

import { createDoc } from 'apidoc';
const apidocOutput = createDoc({
excludeFilters: [''],
includeFilters: [''],
src: '',
dest: '',
template: '',
templateSingleFile: '',
config: '',
apiprivate: true,
verbose: true,
single: true,
debug: true,
parse: true,
colorize: true,
filters: { aFilter: '' },
languages: { aLanguage: '' },
parsers: { aParser: '' },
workers: { aWorker: '' },
silent: true,
simulate: true,
markdown: true,
lineEnding: '',
encoding: '',
copyDefinitions: true,
filterBy: '',
});
if (typeof apidocOutput !== 'boolean') {
const { data, project } = apidocOutput;
}
createDoc({
filters: {
api: {
postFilter: (parsedFiles, parsedFilenames) => { }
}
},
languages: {
default: {
docBlocksRegExp: /\/\*\*.*\*\//,
inlineRegExp: /\@/,
}
},
parsers: {
parse: (content, source, messagesg) => ({
name: '',
title: '',
description: '',
}),
path: '',
getGroup: () => '',
markdownFields: [],
markdownRemovePTags: [],
},
workers: {
work: {}
},
filterBy: [''],
});