Skip to content

Moving to Typescript #1074

@wojpawlik

Description

@wojpawlik

Non-breaking

  • Merge/close all pull requests.
  • Move .js files to src/, tsc, add { "exports": { "./": "./lib/" } } to package.json.
  • Add stub files to avoid breaking for Node <12 Drop Node <12 compat
  • Change extension to .ts and add type annotations from .d.ts files.
    • router.ts
    • telegram.ts
    • context.ts
    • composer.ts
    • core/network/client.ts
    • telegraf.ts
  • Configure formatting/linting of .ts files.
  • Move the main documentation to typedoc (Move to typedoc #1205)
  • Update examples (Typecheck examples #1177, Types and examples for scenes and wizards #1194)

Help wanted

Breaking

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions