@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
10 lines (9 loc) • 428 B
TypeScript
export declare class PromiseCancelledSignal {
}
export declare function findIndex<T>(array: ReadonlyArray<T>, condition: (t: T) => unknown): number;
export declare function makeCancellable<T>(promise: Promise<T>): {
promise: Promise<T>;
cancel: () => void;
isCancelled: () => boolean;
};
export declare function useMemoizedArray<T>(array: ReadonlyArray<T>, isEqual: (prev: T, next: T) => boolean): ReadonlyArray<T>;