Skip to content

Types/Typescript support #98

Description

@james-pre

Currently, Postject does not make types available for the Javascript API, so it is unwieldy to use with strict Typescript. Strict Typescript gives an error when importing from postject.

Could not find a declaration file for module 'postject'. '<NPM project root>/node_modules/postject/dist/api.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/postject` if it exists or add a new declaration (.d.ts) file containing `declare module 'postject';`ts(7016)

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