0.50.3 • Published 6 months ago

@types/apidoc v0.50.3

Weekly downloads
959
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/apidoc

Summary

This package contains type definitions for apidoc (https://github.com/apidoc/apidoc).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/apidoc.

index.d.ts

// Type definitions for apidoc 0.50
// Project: https://github.com/apidoc/apidoc
// Definitions by: rigwild <https://github.com/rigwild>
//                 hoonga <https://github.com/hoonga>
//                 NicolasCARPi <https://github.com/NicolasCARPi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface ParsedFile {
    filename: string;
    extension: string;
    src: string;
    blocks: Array<{ global: any; local: any; }>;
}

export interface DocOptions {
    excludeFilters?: string[] | undefined;
    includeFilters?: string[] | undefined;
    src?: string | undefined;
    dest?: string | undefined;
    template?: string | undefined;
    templateSingleFile?: string | undefined;
    config?: string | undefined;
    apiprivate?: boolean | undefined;
    verbose?: boolean | undefined;
    single?: boolean | undefined;
    debug?: boolean | undefined;
    colorize?: boolean | undefined;
    filters?: Record<string, string> | {
        [keys: string]: {
            postFilter: (parsedFiles: ParsedFile[], parsedFilenames: string[]) => void
        }
    } | undefined;
    languages?: Record<string, string> | {
        [language: string]: {
            docBlocksRegExp: RegExp;
            inlineRegExp: RegExp;
        }
    } | undefined;
    parsers?: Record<string, string> | {
        parse: (content: string, source: string, messages: string) => {
            name: string;
            title: string;
            description: string;
        };
        path: string;
        getGroup?: (() => string) | undefined;
        markdownFields?: string[] | undefined;
        markdownRemovePTags?: string[] | undefined;
    } | undefined;
    workers?: Record<string, string> | {
        [keys: string]: any;
    } | undefined;
    silent?: boolean | undefined;
    dryRun?: boolean | undefined;
    markdown?: boolean | undefined;
    lineEnding?: string | undefined;
    encoding?: string | undefined;
    copyDefinitions?: boolean | undefined;
    filterBy?: string | string[] | undefined;
}

export function createDoc(options: DocOptions): boolean | { data: Array<Record<string, any>>; project: Record<string, any> };

Additional Details

  • Last updated: Thu, 04 Nov 2021 08:31:22 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by rigwild, hoonga, and NicolasCARPi.

0.50.3

6 months ago

0.50.1

8 months ago

0.50.2

7 months ago

0.50.0

3 years ago

0.22.3

3 years ago

0.22.2

4 years ago

0.22.1

4 years ago

0.22.0

4 years ago