mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Update apidoc-tests.ts * Fix apidoc argument typings * Update apidoc-tests.ts * Update index.d.ts * Update apidoc-tests.ts
62 lines
1.2 KiB
TypeScript
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: [''],
|
|
});
|