@selfdecode/sd-component-library 4.0.38-test3 → 4.0.38-test5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ import { BoxProps } from "rebass";
|
|
|
4
4
|
* Type for the refsMap to be stored in reference manager.
|
|
5
5
|
*/
|
|
6
6
|
export declare type refsMap = {
|
|
7
|
-
[key: string]: React.MutableRefObject<HTMLElement | undefined>;
|
|
7
|
+
[key: string]: React.MutableRefObject<HTMLElement | undefined | null>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* Interface for Anchor props.
|
|
@@ -16,7 +16,7 @@ declare class RefsManager {
|
|
|
16
16
|
* @param id ID for the component.
|
|
17
17
|
* @param ref React Ref object for the component. Used for scrolling.
|
|
18
18
|
*/
|
|
19
|
-
addRef(id: string, ref: React.MutableRefObject<HTMLDivElement | undefined>): void;
|
|
19
|
+
addRef(id: string, ref: React.MutableRefObject<HTMLDivElement | undefined | null>): void;
|
|
20
20
|
/**
|
|
21
21
|
* Remove a ref from registry.
|
|
22
22
|
*
|