We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f181da8 commit d08c147Copy full SHA for d08c147
config/mutations.go
@@ -36,6 +36,8 @@ func SimplifyOmitEmpty(ts *guts.Typescript) {
36
})
37
}
38
39
+// ExportTypes adds 'export' to all top level types.
40
+// interface Foo {} --> export interface Foo{}
41
func ExportTypes(ts *guts.Typescript) {
42
ts.ForEach(func(key string, node bindings.Node) {
43
switch node := node.(type) {
@@ -51,6 +53,8 @@ func ExportTypes(ts *guts.Typescript) {
51
53
52
54
55
56
+// ReadOnly sets all interface fields to 'readonly', resulting in
57
+// all types being immutable.
58
// TODO: follow the AST all the way and find nested arrays
59
func ReadOnly(ts *guts.Typescript) {
60
0 commit comments