ts-activex-gen | generating Typescript definitions / DefinitelyTyped packages | REST library
kandi X-RAY | ts-activex-gen Summary
kandi X-RAY | ts-activex-gen Summary
Library + UI for generating Typescript definitions / DefinitelyTyped packages from COM type libraries / LibreOffice Doxygen XML
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ts-activex-gen
ts-activex-gen Key Features
ts-activex-gen Examples and Code Snippets
Community Discussions
Trending Discussions on ts-activex-gen
QUESTION
I am trying to generate Typescript definitions from the LibreOffice IDL (via Doxygen-generated XML).
The XMultiServiceFactory interface has two methods for creating instances: createInstance
and createInstanceWithArguments
. However, I can't seem to find which types require arguments and what they are, and should be instantiated with createInstanceWithArguments
; and which types don't require arguments, and should be instantiated with createInstance
.
Being able to define overloads based on the string parameter passed to the method would enable static typing based on those overloads:
...ANSWER
Answered 2017-Sep-01 at 21:08According to the Service Manager dev guide:
The service definition should describe the meaning of each element.
I take this to mean that the IDL files should tell what if any arguments are needed. For example, in the source code file /offapi/com/sun/star/configuration/ConfigurationProvider.idl
, there is a detailed description of arguments, and the comments state that it is also possible to create an instance without any arguments. (The code does not show the arguments however; it's explained only in comments).
It looks like all the relevant information from that file has been included in the online documentation for ConfigurationProvider, so there is no need to actually look at the IDL files.
Contrast that with com.sun.star.frame.Desktop, which does not take arguments, as shown in the example at https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Using_the_Desktop.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ts-activex-gen
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page