Skip to content

Abstract class generated as regular class #122

@mustofa-id

Description

@mustofa-id

abstract classes are emitted as regular classes in the generated .d.ts file. this removes the abstract modifier and causes incorrect typings.

example:

abstract class Base {
	protected abstract readonly type: Type;

	protected async getConfig(): Promise<Config> {
		return { /* ... */ };
	}
}

generated .d.ts:

class Base {
	protected abstract readonly type: Type;
	protected getConfig(): Promise<Config>
}

version: >= v0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions