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

Implement inheritance #2

Closed
zavr-1 opened this issue Oct 3, 2018 · 1 comment
Closed

Implement inheritance #2

zavr-1 opened this issue Oct 3, 2018 · 1 comment

Comments

@zavr-1
Copy link
Contributor

zavr-1 commented Oct 3, 2018

<type name="Message" desc="A TypeScript Server message">
    <prop number name="seq">
      Sequence number of the message
    </prop>
    <prop name="type" type="'request'|'response'|'event'">
      One of "request", "response", or "event"
    </prop>
  </type>
<type name="Event" desc="Server-initiated event message" extends="Message">
    <prop name="type" type="'event'" />
    <prop string name="event">
      Name of event
    </prop>
    <prop opt name="body">
      Event-specific information
    </prop>
  </type>
@zavr-1
Copy link
Contributor Author

zavr-1 commented Oct 3, 2018

microsoft/TypeScript#20077

/**
 * @typedef {Object} ChildType
 * @property {String} childProp
 *
 * @typedef {Base & ChildType} Child
 */

but only for TS

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

No branches or pull requests

1 participant