zspitz / ts-activex-gen

Library + UI for generating Typescript definitions / DefinitelyTyped packages from COM type libraries / LibreOffice Doxygen XML
MIT License
12 stars 4 forks source link

Include nominally typed SafeArray<T> and VarDate in each definition file #57

Closed zspitz closed 7 years ago

zspitz commented 7 years ago

Unless https://github.com/Microsoft/TypeScript/issues/17526 is merged.

zspitz commented 7 years ago

This is a problem, because declaration merging is not supported on classes. If two declaration files have VarDate and SafeArray declarations, it will be a compiler error.

zspitz commented 7 years ago

SafeArray<T> is currently implemented as an interface; multiple declarations are merged.

VarDate already exists in lib.d.ts as an interface.