Improve generated Typescript interfaces
mohoff opened this issue · 2 comments
mohoff commented
Currently, the compiled types are written into a strongconfig.d.ts
. It also exports an interface representing the top-level Config
type.
- Investigate,
- if there's a better util to generate types.
- if it makes more sense to generate
type
s instead ofinterface
s
- Improve type generation with:
- Remove
[k: string]: any
of all generated interfaces - Implement check that
title
of a json-schema definition can not be namedConfig
as it's reserved for the top-level interface we append - Improve header: Replace warning. Is
tslint:disable
needed?
- Remove
chapati23 commented
@mohoff after we've learned about "additionalProperties": false
, is this ticket still required?
mohoff commented
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.