mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 17:05:58 -05:00
Missed some errors
This commit is contained in:
4
tests/lib/react.d.ts
vendored
4
tests/lib/react.d.ts
vendored
@@ -27,7 +27,7 @@ declare namespace __React {
|
||||
ref: string | ((element: Element) => any);
|
||||
}
|
||||
|
||||
interface ReactHTMLElement extends DOMElement<HTMLProps> {
|
||||
interface ReactHTMLElement extends DOMElement<HTMLProps<HTMLElement>> {
|
||||
ref: string | ((element: HTMLElement) => any);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ declare namespace __React {
|
||||
(props?: P, ...children: ReactNode[]): DOMElement<P>;
|
||||
}
|
||||
|
||||
type HTMLFactory = DOMFactory<HTMLProps>;
|
||||
type HTMLFactory = DOMFactory<HTMLProps<HTMLElement>>;
|
||||
type SVGFactory = DOMFactory<SVGProps>;
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user