create-rstack 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -57,12 +57,38 @@ declare interface MultiSelectOptions<Value> {
57
57
  }
58
58
 
59
59
  declare type Option_2<Value> = Value extends Primitive ? {
60
+ /**
61
+ * Internal data for this option.
62
+ */
60
63
  value: Value;
64
+ /**
65
+ * The optional, user-facing text for this option.
66
+ *
67
+ * By default, the `value` is converted to a string.
68
+ */
61
69
  label?: string;
70
+ /**
71
+ * An optional hint to display to the user when
72
+ * this option might be selected.
73
+ *
74
+ * By default, no `hint` is displayed.
75
+ */
62
76
  hint?: string;
63
77
  } : {
78
+ /**
79
+ * Internal data for this option.
80
+ */
64
81
  value: Value;
82
+ /**
83
+ * Required. The user-facing text for this option.
84
+ */
65
85
  label: string;
86
+ /**
87
+ * An optional hint to display to the user when
88
+ * this option might be selected.
89
+ *
90
+ * By default, no `hint` is displayed.
91
+ */
66
92
  hint?: string;
67
93
  };
68
94
 
@@ -84,7 +110,7 @@ declare interface TextOptions {
84
110
  placeholder?: string;
85
111
  defaultValue?: string;
86
112
  initialValue?: string;
87
- validate?: (value: string) => string | void;
113
+ validate?: (value: string) => string | Error | undefined;
88
114
  }
89
115
 
90
116
  export { }