• Version 0.6.0
  • Published
  • 4 dependencies
  • MIT license


npm i definition-header
yarn add definition-header
pnpm add definition-header


DefinitelyTyped definition header tools



variable parts

let parts: typeof parseLax;


    function assert

    assert: (header: model.Header) => model.Header;

      function isPartial

      isPartial: (source: string) => boolean;

        function parse

        parse: (source: string) => Result;

          function stringify

          stringify: (header: model.Header) => string[];


            interface Result

            interface ParseResult {}

              property column

              column?: number;

                property details

                details?: string;

                  property index

                  index?: number;

                    property line

                    line?: number;

                      property message

                      message?: string;

                        property success

                        success: boolean;

                          property value

                          value?: model.Header;


                            namespace model

                            module 'src/model.d.ts' {}

                              interface Author

                              interface Author extends Person {}

                                interface Header

                                interface Header {}

                                  property authors

                                  authors: Author[];

                                    property label

                                    label: Label;

                                      property project

                                      project: Project[];

                                        property repository

                                        repository: Repository;

                                          interface Label

                                          interface Label {}

                                            property name

                                            name: string;

                                              property version

                                              version: string;

                                                interface Person

                                                interface Person {}

                                                  property name

                                                  name: string;

                                                    property url

                                                    url: string;

                                                      interface Project

                                                      interface Project {}

                                                        property url

                                                        url: string;

                                                          interface Repository

                                                          interface Repository {}

                                                            property url

                                                            url: string;

                                                              namespace utils

                                                              module 'src/utils.d.ts' {}

                                                                function charPointer

                                                                charPointer: (column: number) => string;

                                                                  function getLinesAt

                                                                  getLinesAt: (stream: string, start: number, end?: number) => string[];

                                                                    function highlightPos

                                                                    highlightPos: (stream: string, line: number, column?: number) => string;

                                                                      function linkPos

                                                                      linkPos: (
                                                                      dest: string,
                                                                      line?: number,
                                                                      column?: number,
                                                                      oneBased?: boolean
                                                                      ) => string;

                                                                        function untrail

                                                                        untrail: (str: string) => string;

                                                                          Package Files (5)

                                                                          Dependencies (4)

                                                                          Dev Dependencies (25)

                                                                          Peer Dependencies (0)

                                                                          No peer dependencies.


                                                                          To add a badge like this badgeto your package's README, use the codes available below.

                                                                          You may also use to create a custom badge linking to

                                                                          • Markdown
                                                                          • HTML
                                                                            <a href=""><img src="" alt=""></a>