@ansible/ansible-ui-framework 2.4.2632 → 2.4.2633
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
2
|
import { FieldPath, FieldPathValue, FieldValues, Validate } from 'react-hook-form';
|
3
|
+
export interface SelectOptionObject {
|
4
|
+
toString(): string;
|
5
|
+
compareTo?(selectOption: unknown): boolean;
|
6
|
+
}
|
3
7
|
export type PageFormCreatableSelectProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
4
8
|
id?: string;
|
5
9
|
name: TFieldName;
|