@@ -5,16 +5,6 @@ import * as preact1 from 'preact';
5
5
import { JSXInternal } from '../../src/jsx' ;
6
6
import * as _Suspense from './suspense' ;
7
7
8
- < < < << << HEAD
9
- = === ===
10
- interface SignalLike < T > {
11
- value : T ;
12
- peek ( ) : T ;
13
- subscribe ( fn : ( value : T ) => void ) : ( ) => void ;
14
- }
15
-
16
- type Signalish < T > = T | SignalLike < T > ;
17
-
18
8
declare namespace preact {
19
9
export interface FunctionComponent < P = { } > {
20
10
(
@@ -108,7 +98,6 @@ declare namespace preact {
108
98
}
109
99
}
110
100
111
- >>> >>> > Move `defaultProps ` into `preact / compat ` ( #4657 )
112
101
// export default React;
113
102
export = React ;
114
103
export as namespace React ;
@@ -120,7 +109,6 @@ declare namespace React {
120
109
export import CreateHandle = _hooks . CreateHandle ;
121
110
export import EffectCallback = _hooks . EffectCallback ;
122
111
export import Inputs = _hooks . Inputs ;
123
- export import PropRef = _hooks . PropRef ;
124
112
export import Reducer = _hooks . Reducer ;
125
113
export import Dispatch = _hooks . Dispatch ;
126
114
export import SetStateAction = _hooks . StateUpdater ;
@@ -356,7 +344,7 @@ declare namespace React {
356
344
}
357
345
358
346
export interface ForwardRefRenderFunction < T = any , P = { } > {
359
- ( props : P , ref : ForwardedRef < T > ) : preact . ComponentChild ;
347
+ ( props : P , ref : ForwardedRef < T > ) : preact1 . ComponentChild ;
360
348
displayName ?: string ;
361
349
}
362
350
@@ -366,13 +354,8 @@ declare namespace React {
366
354
}
367
355
368
356
export function forwardRef < R , P = { } > (
369
- < < < << << HEAD
370
357
fn : ForwardRefRenderFunction < R , P >
371
- ) : preact . FunctionalComponent < PropsWithoutRef < P > & { ref ?: preact . Ref < R > } > ;
372
- === === =
373
- fn : ForwardFn < P , R >
374
358
) : preact1 . FunctionalComponent < PropsWithoutRef < P > & { ref ?: preact1 . Ref < R > } > ;
375
- >>> >>> > Move `defaultProps ` into `preact / compat ` ( #4657 )
376
359
377
360
export type PropsWithoutRef < P > = Omit < P , 'ref' > ;
378
361
0 commit comments