PHP 8.2.30
Preview: useAsync.d.ts Size: 1.83 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-select/dist/declarations/src/useAsync.d.ts

import { StateManagerProps } from './useStateManager';
import { GroupBase, OptionsOrGroups } from './types';
declare type AsyncManagedPropKeys = 'options' | 'isLoading' | 'onInputChange' | 'filterOption';
export interface AsyncAdditionalProps<Option, Group extends GroupBase<Option>> {
    /**
     * The default set of options to show before the user starts searching. When
     * set to `true`, the results for loadOptions('') will be autoloaded.
     */
    defaultOptions?: OptionsOrGroups<Option, Group> | boolean;
    /**
     * If cacheOptions is truthy, then the loaded data will be cached. The cache
     * will remain until `cacheOptions` changes value.
     */
    cacheOptions?: any;
    /**
     * Function that returns a promise, which is the set of options to be used
     * once the promise resolves.
     */
    loadOptions?: (inputValue: string, callback: (options: OptionsOrGroups<Option, Group>) => void) => Promise<OptionsOrGroups<Option, Group>> | void;
    /**
     * Will cause the select to be displayed in the loading state, even if the
     * Async select is not currently waiting for loadOptions to resolve
     */
    isLoading?: boolean;
}
export declare type AsyncProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = StateManagerProps<Option, IsMulti, Group> & AsyncAdditionalProps<Option, Group>;
export default function useAsync<Option, IsMulti extends boolean, Group extends GroupBase<Option>, AdditionalProps>({ defaultOptions: propsDefaultOptions, cacheOptions, loadOptions: propsLoadOptions, options: propsOptions, isLoading: propsIsLoading, onInputChange: propsOnInputChange, filterOption, ...restSelectProps }: AsyncProps<Option, IsMulti, Group> & AdditionalProps): StateManagerProps<Option, IsMulti, Group> & Omit<AdditionalProps, keyof AsyncAdditionalProps<Option, Group> | AsyncManagedPropKeys>;
export {};

Directory Contents

Dirs: 8 × Files: 17

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-28 00:29:58
Edit Download
animated DIR
- drwxr-xr-x 2026-02-28 00:30:28
Edit Download
async DIR
- drwxr-xr-x 2026-02-28 00:30:00
Edit Download
- drwxr-xr-x 2026-02-28 00:29:58
Edit Download
base DIR
- drwxr-xr-x 2026-02-28 00:30:00
Edit Download
- drwxr-xr-x 2026-02-28 00:30:16
Edit Download
creatable DIR
- drwxr-xr-x 2026-02-28 00:30:04
Edit Download
internal DIR
- drwxr-xr-x 2026-02-28 00:30:26
Edit Download
559 B lrw-r--r-- 2026-02-28 00:29:52
Edit Download
870 B lrw-r--r-- 2026-02-28 00:29:52
Edit Download
365 B lrw-r--r-- 2026-02-28 00:29:54
Edit Download
790 B lrw-r--r-- 2026-02-28 00:29:58
Edit Download
63 B lrw-r--r-- 2026-02-28 00:29:58
Edit Download
539 B lrw-r--r-- 2026-02-28 00:29:58
Edit Download
1.98 KB lrw-r--r-- 2026-02-28 00:30:04
Edit Download
289 B lrw-r--r-- 2026-02-28 00:30:08
Edit Download
26.09 KB lrw-r--r-- 2026-02-28 00:30:16
Edit Download
559 B lrw-r--r-- 2026-02-28 00:30:18
Edit Download
5.84 KB lrw-r--r-- 2026-02-28 00:30:20
Edit Download
672 B lrw-r--r-- 2026-02-28 00:30:20
Edit Download
5.15 KB lrw-r--r-- 2026-02-28 00:30:22
Edit Download
1.83 KB lrw-r--r-- 2026-02-28 00:30:22
Edit Download
2.33 KB lrw-r--r-- 2026-02-28 00:30:24
Edit Download
1.47 KB lrw-r--r-- 2026-02-28 00:30:26
Edit Download
3.32 KB lrw-r--r-- 2026-02-28 00:30:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).