Skip to content

Commit 1c95abb

Browse files
committed
Added WithInterface
1 parent 3d7bac1 commit 1c95abb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

typescriptify/typescriptify.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ func (t *TypeScriptify) WithCreateFromMethod(b bool) *TypeScriptify {
190190
return t
191191
}
192192

193+
func (t *TypeScriptify) WithInterface(b bool) *TypeScriptify {
194+
t.CreateInterface = b
195+
return t
196+
}
197+
193198
func (t *TypeScriptify) WithConstructor(b bool) *TypeScriptify {
194199
t.CreateConstructor = b
195200
return t

0 commit comments

Comments
 (0)