@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
24 lines (23 loc) • 891 B
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as React from 'react';
/**
* @hidden
*/
export interface Setter<T> extends Array<any> {
0?: T;
[index: number]: any;
}
/**
* @hidden
*/
export declare const useInheritedContextState: <T>(context: React.Context<[T | undefined, (...event: Setter<T>) => void]>, defaultValue?: any) => [T, (...event: Setter<T>) => void];
/**
* @hidden
*/
export declare const useInheritedState: <T>(state: [T | undefined, (...event: Setter<T>) => void], defaultValue?: any) => [T, (...event: Setter<T>) => void];