Skip to content

Add TypeScript types #41

@jankapunkt

Description

@jankapunkt

We need to add TypeScript types, if possible as part of the build chain.

An example would be

"build": "rollup --config rollup.dist.config.js && tsc",

with the following tsconfig.json

{
  "include": [
    "dist/ThinStorage.js"
  ],
  "compilerOptions": {
    "declaration": true,
    "emitDeclarationOnly": true,
    "allowJs": true
  }
}

However, I'm still undecided whether to add tsc as devDependency or require it globally (which then would imply updating our CI workflows to make tsc available for the build step)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions