@codecademy/gamut
73.5.073.5.1-alpha.7af239.0
dist/Form/SelectDropdown/core/utils.d.ts~
dist/Form/SelectDropdown/core/utils.d.tsModified+3−2
Index: package/dist/Form/SelectDropdown/core/utils.d.ts
===================================================================
--- package/dist/Form/SelectDropdown/core/utils.d.ts
+++ package/dist/Form/SelectDropdown/core/utils.d.ts
@@ -1,8 +1,9 @@
import * as React from 'react';
import { ActionMeta, Options as OptionsType } from 'react-select';
import { SelectOptionBase } from '../../utils';
import { BaseOnChangeProps, ExtendedOption, MultiSelectDropdownProps, OptionStrict, SelectDropdownGroup, SelectDropdownOptions, SelectDropdownProps, SingleSelectDropdownProps } from '../types';
+import { ValidationMessage } from './translations';
export declare const isMultipleSelectProps: (props: BaseOnChangeProps) => props is MultiSelectDropdownProps;
export declare const isSingleSelectProps: (props: BaseOnChangeProps) => props is SingleSelectDropdownProps;
/**
* Resolves the value for a newly created option from react-select action metadata
@@ -29,8 +30,8 @@
* @param selectedOptions - The currently selected options
* @param value - The value or values to remove
* @returns New array with the specified values removed
*/
-export declare const resolveNoOptionsMessage: (validationMessage: SelectDropdownProps["validationMessage"]) => ((obj: {
+export declare const resolveNoOptionsMessage: (validationMessage: SelectDropdownProps["validationMessage"], translationsValidationMessage: ValidationMessage) => ((obj: {
inputValue: string;
-}) => React.ReactNode) | undefined;
+}) => React.ReactNode);
export declare const removeValueFromSelectedOptions: (selectedOptions: ExtendedOption[] | SelectOptionBase[], value: SelectDropdownProps["value"]) => SelectOptionBase[];