Skip to content

Option to generate types instead of interfaces #280

@dartess

Description

@dartess

Hi!

Is it possible to add an option to generate

export type User = {
  username?: string;
  uuid?: string;
}

instead of

export interface User {
  username?: string;
  uuid?: string;
}

Sometimes it is necessary to prevent possible expansion of the type. Use case here

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions