Provide pipeline for incremental typescript conversion

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.0
    • Affects Version/s: 4.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      After NODE-2524 ran into a blocking issue with generating type definitions from jsDoc, we are reevaluating how we can integrate typescript into the driver.
      The work here should demonstrate how we could have typescript compiled javascript output into our lib folder for use in the driver. This would give us powerful typing and would allow for per file upgrades as we transition to a more type annotated code base.

      Some concerns to look out for and should be mentioned in PR notes:

      • How can we avoid / minimize any polyfills
      • How does the developer workflow change with a compilation step
      • What's our plan for maintaining up to date generated files (e.g, CI to make sure tsc was run before merging)
      • Instead of outputting to lib maybe its best to have all code go to dist to avoid confusion over which files are generated and which are still hand maintained js

            Assignee:
            Matt Broadstone
            Reporter:
            Neal Beeken
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: