Skip to content

Restrict usage of TypeScript reserved words as names for types #4

@demsullivan

Description

@demsullivan

The dry-typescript compiler should throw an error if any types have names that conflict with reserved words in TypeScript.

For example, currently the following would not throw an error:

module Types
  include Dry.Types()
  extend Dry::Typescript

  ts_export any = Types::String # This should throw an error, because 'any' is a TypeScript reserved word.
end

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