Skip to content

RFC: TypeScript / es6 / es7 #6

Closed
@ritch

Description

@ritch

I think the main goal of loopback-next should be TypeScript and es6-7 as first class features. Below are the goals:

  1. rewrite LoopBack source code as TypeScript classes using es6 / 7 features best practices
  2. use TypeScript native modules eg. import and export.
  3. promises first and everywhere
  4. async and await everywhere

Below is brief list of impact for discussion.

  1. drop callback API ??? - we need to focus on promise support, can we do that without dropping callbacks?
  2. remove all uses of require()
  3. change model script syntax - now export es6 class ???
  4. shouldn't force users to use TypeScript - need to provide docs as both TypeScript and JavaScript
  5. would tests need to be rewritten in TypeScript ???
  6. drop custom impl of mixin and class in juggler

Anything else?

@bajtos @raymondfeng @superkhau

Metadata

Metadata

Assignees

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