Skip to content

sdk not exporting type declarations #26

@ed3899

Description

@ed3899

VS Code is not inferring the correct typings. I tested the following configuration by
manually changing the installed package inside node_modules.

It works now.

package.json

"exports": {
    ".": {
        "types"./types/fleetbase.d.ts", // <-- THIS IS THE MISSING PIECE!
        "import": "./dist/esm/fleetbase.js",
        "require": "./dist/cjs/fleetbase.js"
    }
},
// And possibly keep the top-level for older TS versions/tooling:
"types": "./dist/types/fleetbase.d.ts",
Image

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