Skip to content

demonstrating issue exporting enums to typescript

Notifications You must be signed in to change notification settings

scala-tsi/scala-tsi-issue-74

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scalatsi-issue-74

demonstrating issue exporting enums to typescript

Generated Output

export type FunkyMapMode = (IDOCUMENT | ILIST | IMAP)

export type FunkyMapMode = ("MAP" | "LIST" | "DOCUMENT")

export interface ICaseClass {
  mode: MapMode
}

export interface IDOCUMENT {

}

export interface IFunkyMapModeDuplicateExport {
  mode: FunkyMapMode
}

export interface ILIST {

}

export interface IMAP {

}

export type MapMode = ("MAP" | "LIST" | "DOCUMENT")

Expected Output

export type MapMode = ("MAP" | "LIST" | "DOCUMENT")
export type FunkyMapMode = ("MAP" | "LIST" | "DOCUMENT")

export interface ICaseClass {
  mode: MapMode
}

export interface IFunkyMapModeDuplicateExport {
  mode: FunkyMapMode
}

About

demonstrating issue exporting enums to typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published