strong-config/node

Improve generated Typescript interfaces

mohoff opened this issue · 2 comments

Currently, the compiled types are written into a strongconfig.d.ts. It also exports an interface representing the top-level Config type.

  1. Investigate,
    • if there's a better util to generate types.
    • if it makes more sense to generate types instead of interfaces
  2. Improve type generation with:
    • Remove [k: string]: any of all generated interfaces
    • Implement check that title of a json-schema definition can not be named Config as it's reserved for the top-level interface we append
    • Improve header: Replace warning. Is tslint:disable needed?

@mohoff after we've learned about "additionalProperties": false, is this ticket still required?

The majority of todos in OP is resolved. The only thing left is 2.3 but i'd say that's so minor that I'm closing for now.