Skip to content

Add support for preserving dry-struct inheritance #2

@demsullivan

Description

@demsullivan

I'd love if the dry-typescript compiler could identify dry-structs that inherit from one another, and preserve this when exporting TypeScript interfaces.

For example:

class A < Dry::Struct
  attribute :a, Types::String
end

class B < A
  attribute :b, Types::Integer
end

Should compile to:

export interface A {
  a: string;
}

export interface B extends A {
  b: number;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions