Skip to content

Update, improve and refactor JSDocs types for core #465

@DavidWells

Description

@DavidWells

Currently we have a custom JSDoc type setup and was created before typescript supported JSDoc types natively. It's about time we modernize this 😅

We need to refactor how the types get emitted to just using regular TypeScripts and emit out the file.

Also, while you're at it, we need to check out the doc types and verify that everything is correct.

So all the code will remain JS but be types with JSDocs. Start with the types in core https://github.com/DavidWells/analytics/tree/master/packages/analytics-core/src

The "types": "../../node_modules/.bin/jsdoc -t ../../node_modules/tsd-jsdoc/dist -r ./src/ -d _temp-types && node scripts/types.js", is ollllddddd and clunky.

Thanks @claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-generatedAutomatically generated contentclaude-codeItems created or modified by Claude Code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions