Merge pull request #19 from Start9Labs/update/union-type

make name optional on union type
This commit is contained in:
J H
2023-01-30 15:19:52 -07:00
committed by GitHub

View File

@@ -220,7 +220,7 @@ export type WithNullable<T> = T & {
export type DefaultString = export type DefaultString =
| string | string
| { | {
/** The chars available for the randome generation */ /** The chars available for the random generation */
charset?: string; charset?: string;
/** Length that we generate to */ /** Length that we generate to */
len: number; len: number;
@@ -318,7 +318,9 @@ export type ValueSpecUnion = {
/** What tag for the specification, for tag unions */ /** What tag for the specification, for tag unions */
tag: { tag: {
id: string; id: string;
name: string; /** @deprecated - optional only for backwards compatibility */
name?: string;
/** @deprecated - optional only for backwards compatibility */
description?: string; description?: string;
"variant-names": { "variant-names": {
[key: string]: string; [key: string]: string;