You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the current command npx ts-interface-builder path/to/file.ts will produce files with the interface named as default.
/** * This module was automatically generated by `ts-interface-builder` */import*astfrom"ts-interface-checker";// tslint:disable:object-literal-key-quotesexportconstdefault=t.iface([],{"currentScore": "number","progress": t.union(t.array("number"),"null"),});constexportedTypeSuite: t.ITypeSuite={
default,};exportdefaultexportedTypeSuite;
This can't be used because default is a reserved keyword. There might be some parsing issue with the interface names when default is specified.
The text was updated successfully, but these errors were encountered:
rui-han-crh
changed the title
Exporting default interface parsing into incorrect interface name
Exporting default interface parses into incorrect interface name
Jul 23, 2023
Typescript now allows the
default
keyword to be used when exporting an interface, for exampleHowever, the current command
npx ts-interface-builder path/to/file.ts
will produce files with the interface named asdefault
.This can't be used because
default
is a reserved keyword. There might be some parsing issue with the interface names whendefault
is specified.The text was updated successfully, but these errors were encountered: