ts2fable
ts2fable copied to clipboard
U5<string, string, string, string, string> option
https://github.com/fable-compiler/ts2fable-exports/blob/master/Yargs.fs#L222
TypeScript
type?: "array" | "boolean" | "count" | "number" | "string";
currently:
abstract ``type``: U5<string, string, string, string, string> option with get, set
probably should be:
abstract ``type``: string option with get, set
How about this?
type [<StringEnum>] [<RequireQualifiedAccess>] TypeAnonymous =
| Array
| Boolean
| Count
| Number
| String
type [<AllowNullLiteral>] Options =
abstract ``type``: TypeAnonymous option with get,set
Or just lay it aside ? Keeping the issue open And waiting f# anonymous type
It would be nice to extract out the anonymous StringEnum
if we can come up with a naming convention that does not have naming conflicts. If I was to make this manually, I would call it OptionsType
which is a combination of the parent type name and the member that it is in.
This is really a duplicate of #45