Skip to content

JSDoc : support @interface and @implements #16142

Description

TypeScript Version: 2.3.3

Code

In a JavaScript file, with checkJs option :

/**
 * @interface Movable
 */

/**
 * @function
 * @name Movable#move
 * @param {number} distance
 */

/**
 * @implements {Movable}
 */
class Vehicle {}

Actual behavior:

No error.

Expected behavior:

An error should be raised. It's important in checkJs mode as JavaScript doesn't have native interfaces.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: JSDocRelates to JSDoc parsing and type generationSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions