mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
Merge pull request #19 from Start9Labs/update/union-type
make name optional on union type
This commit is contained in:
6
types.ts
6
types.ts
@@ -220,7 +220,7 @@ export type WithNullable<T> = T & {
|
||||
export type DefaultString =
|
||||
| string
|
||||
| {
|
||||
/** The chars available for the randome generation */
|
||||
/** The chars available for the random generation */
|
||||
charset?: string;
|
||||
/** Length that we generate to */
|
||||
len: number;
|
||||
@@ -318,7 +318,9 @@ export type ValueSpecUnion = {
|
||||
/** What tag for the specification, for tag unions */
|
||||
tag: {
|
||||
id: string;
|
||||
name: string;
|
||||
/** @deprecated - optional only for backwards compatibility */
|
||||
name?: string;
|
||||
/** @deprecated - optional only for backwards compatibility */
|
||||
description?: string;
|
||||
"variant-names": {
|
||||
[key: string]: string;
|
||||
|
||||
Reference in New Issue
Block a user