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

Add typed overloads to `com.sun.star.lang.XMultiServiceFactory::createInstance` #72

Closed zspitz closed 7 years ago

zspitz commented 7 years ago

e.g.:

createInstance(aServiceSpecifier: 'com.sun.star.animations.Audio'): com.sun.star.animations.Audio;

Some of these need to be called with arguments (using com.sun.star.lang.XMultiServiceFactory::createInstanceWithArguments (it may be that calling something without arguments when arguments are required, is still valid)

zspitz commented 7 years ago

https://ask.libreoffice.org/en/question/127593/createinstance-vs-createinstancewitharguments/

zspitz commented 7 years ago

Fixed. Overloads are added to both createInstance and createInstanceWithArguments, via mapped types.