Skip to content

@augments JSDoc tag causes compilation error in generated declaration file #4875

Description

Steps to reproduce

Declaration file generated by typescript does not typecheck with TypeScript in API and language server

declare class Base {
}
declare const StateDependencies_base: typeof Base;
/**
 * The state dependencies is a record that holds all the injected dependencies
 * for the stores/state.
 *
 * @class StateDependencies
 * @augments {Base}
 */
export declare class StateDependencies extends StateDependencies_base {
}

export {};
 

Behavior with typescript@6.0

No error

Behavior with tsgo

In the api and language server we get:

JSDoc '@augments Base' does not match the 'extends StateDependencies_base' clause.  ts(8023)

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions