Skip to content

support import types for pure JS files #200

@obiot

Description

@obiot

using this fix issues with generated TypeScript definition where defined @types in JSDoc are not being found :

for example

/** 
 * @type {import('./../physics/body.js').Body}
 */

But as of now, this generates an unknown value with webdoc:

body
body: unknown

unknown

See as well below for a good article better explaining it :
https://darekkay.com/blog/javascript-type-comments/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions