Skip to content

v1.3.0

Latest
Compare
Choose a tag to compare
@Emyrk Emyrk released this 28 Apr 16:35
· 2 commits to main since this release
2cbbcee

!! Breaking Change !!

  • !feat: use first class typescript enums by @Emyrk in #20

Enum output changed from:

export type EnumString = "bar" | "baz" | "foo" | "qux";

to

export enum EnumString {
    EnumBar = "bar",
    EnumBaz = "baz",
    EnumFoo = "foo",
    EnumQux = "qux"
}

To get the previous behavior use the mutation config.EnumAsTypes.

        // use alias types for enums
	ts.ApplyMutations(
		config.EnumAsTypes,
	)

Full Changelog: v1.2.0...v1.3.0