emscripten-core / emscripten-core/emscripten
Create custom type definition
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Hi,
Im trying use emscripten type defibition to create a custom type to jsdoc:
https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/emscripten
Im using this code but this don't work:
```
///
/**
* @typedef {EmscriptenModule} EmscModule
*
* @typedef {Object ~ EmscriptenModule} WasmModule
* @property {import("../../../nativium/modules/app-core/gluecode/generated-src/ts/app-core").ApplicationCore_statics} ApplicationCore
* @property {import("../../../nativium/modules/repository/gluecode/generated-src/ts/repository").Repository_statics} Repository
*/
```
But this is working:
```
///
/**
* @typedef {Object} WasmModule
* @property {import("../../../nativium/modules/app-core/gluecode/generated-src/ts/app-core").ApplicationCore_statics} ApplicationCore
* @property {import("../../../nativium/modules/repository/gluecode/generated-src/ts/repository").Repository_statics} Repository
*/
```
And this work too:
```
///
/**
* @typedef {EmscriptenModule} WasmModule
*/
```
But i need mix adding that two properties (ApplicationCore and Repository) to `EmscriptenModule` type.
How can i do this?
Contributor guide
Assessment
This issue has not been assessed yet.