cs
This commit is contained in:
10
node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.d.ts
generated
vendored
Normal file
10
node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { EffectCallback } from 'react';
|
||||
import * as React from 'react';
|
||||
type UseCompatibleInsertionEffect = (renderEffect: EffectCallback, effect: (polyfill?: boolean) => ReturnType<EffectCallback>, deps: React.DependencyList) => void;
|
||||
/**
|
||||
* Compatible `useInsertionEffect`
|
||||
* will use `useInsertionEffect` if React version >= 18,
|
||||
* otherwise use `useInsertionEffectPolyfill`.
|
||||
*/
|
||||
declare const useCompatibleInsertionEffect: UseCompatibleInsertionEffect;
|
||||
export default useCompatibleInsertionEffect;
|
||||
Reference in New Issue
Block a user