Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support for typedef #12

Open
thejhh opened this issue Apr 26, 2019 · 0 comments
Open

Feature request: Support for typedef #12

thejhh opened this issue Apr 26, 2019 · 0 comments

Comments

@thejhh
Copy link

thejhh commented Apr 26, 2019

I guess that's not yet supported? I couldn't find a test for typedef definitions.

I use a lot of code like this to define backend's data transfer objects before I pass them to my client side model classes:

/**
 * @typedef {Object} MyDataDTO
 * @property {string} foo -
 * @property {string} bar -
 */

/**
 * @typedef {Object} MyResponseDTO
 * @property {MyDataDTO} payload -
 * @property {number} status -
 */

/** 
 */
class MyData {

    /** 
     * @param model {MyDataDTO}
     */
    constructor (model) {
        this._model = model;
    }

    // ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants