Skip to content

Version information #65

@AJamesPhillips

Description

@AJamesPhillips

From the 'Publish to @types' from typescriptlang.org I understand that the definitions from DefinitelyTyped are used to create the @types/<library> npm modules. From the contributing page I was wondering if the advice on versioning is still correct when it suggests library-1.2.0.d.ts? (Which if #64 is correct then it should be index-1.2.0.d.ts too?) I was wondering (and am happy to prepare a pr to update documentation):

  1. what the SemVer version relates to. Are the major and minor parts related to the package version it is trying to follow, so for example, lodash@4.14.x should have an @types/lodash@4.14.x npm package?
  2. Is the patch version just autoincremented whenever a change to the .d.ts version in the DefinitelyTyped github repo is observed? If not how is it set? lodash only went up to 4.14.2 in npm but the @types/lodash goes up to 4.14.54
  3. Where are the major and minor versions obtained from? I can see that in the lodash index.d.ts it is written at the top of the header:
    https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/lodash/index.d.ts am I correct in saying the major and minor versions parsed out from there but not the patch version (it shouldn't be given)?

Apologies if questions are confused / duplicated. Many thanks for any clarifications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions