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
TYPE-ERROR: useInputControl only accepts a type param assignable to string | string[] | undefined even though the functionality stays the same for object[] (e.g.).
#804
typeT=object[];functionComponent(){constinputControl=useInputControl<T>({//meta is FieldMetadata<T>
...meta,//TYPE-ERROR: T is not assignable to string | string[] | undefinedinitialValue: meta.initialValue,});// [...]}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Beta Was this translation helpful? Give feedback.
All reactions