UNPKG

@carbon/react

Version:

React components for the Carbon Design System

19 lines (18 loc) 497 B
/** * Copyright IBM Corp. 2016, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /** * A callback function to be executed on `resize`. */ type Callback = () => void; export declare const OptimizedResize: { /** Adds a callback function to be executed on window `resize`. */ add: (callback: Callback) => { /** Removes the callback. */ remove: () => void; }; }; export {};