Skip to content

ES5 TypeScript inheritance broken for Link and Chain classes #32

Description

@JoshuaWink

Bug Report: TypeScript Inheritance Broken

The Link and Chain classes cannot be properly extended using TypeScript's extends keyword, despite the type definitions suggesting it should work.

Runtime error: 'Class constructor Link/Chain cannot be invoked without new'

Root cause: Runtime JavaScript implementations don't support TypeScript inheritance code generation.

Suggested fix: Audit all runtime class implementations in core/ directory for TypeScript inheritance compatibility.

This affects Link, Chain, and potentially other classes that claim inheritance support in types.d.ts but break it in the runtime implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtypescriptTypeScript support within JavaScript package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions