UNPKG

1.1 kBTypeScriptView Raw
1import React from 'react';
2type DeterministicIdProviderValue = Map<string, number>;
3type DeterministicIdProviderProps = React.PropsWithChildren<{
4 instanceCounterMap?: DeterministicIdProviderValue;
5}>;
6/**
7 * ---
8 * category: components/utilities
9 * ---
10 * WARNING: providing the `instanceCounterMap` prop will result in unexpected behaviour. DO NOT USE IT!
11 *
12 * DEPRECATED: the `instanceCounterMap` prop is deprecated. You don't need to supply the
13 * `instanceCounterMap` to the component. It handles it internally.
14 *
15 * This is utility component for wrapping components with `DeterministicIdContext.Provider`
16 * See detailed documentation about how to use it: [InstUISettingsProvider](/#InstUISettingsProvider)
17 */
18declare const DeterministicIdContextProvider: {
19 ({ children, instanceCounterMap }: DeterministicIdProviderProps): React.JSX.Element;
20 defaultProps: {
21 instanceCounterMap: DeterministicIdProviderValue;
22 };
23};
24export { DeterministicIdContextProvider };
25export type { DeterministicIdProviderValue };
26//# sourceMappingURL=DeterministicIdContextProvider.d.ts.map
\No newline at end of file