mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
Electron Webview tag support added. (#22058)
This commit is contained in:
committed by
Mohamed Hegazy
parent
c152f305b9
commit
d0db614137
1
types/react/global.d.ts
vendored
1
types/react/global.d.ts
vendored
@@ -119,6 +119,7 @@ interface HTMLTableRowElement extends HTMLElement { }
|
||||
interface HTMLTrackElement extends HTMLElement { }
|
||||
interface HTMLUListElement extends HTMLElement { }
|
||||
interface HTMLVideoElement extends HTMLElement { }
|
||||
interface HTMLWebViewElement extends HTMLElement { }
|
||||
|
||||
interface SVGElement extends Element { }
|
||||
interface SVGSVGElement extends SVGElement { }
|
||||
|
||||
22
types/react/index.d.ts
vendored
22
types/react/index.d.ts
vendored
@@ -3264,6 +3264,26 @@ declare namespace React {
|
||||
zoomAndPan?: string;
|
||||
}
|
||||
|
||||
interface WebViewHTMLAttributes<T> extends HTMLAttributes<T> {
|
||||
allowFullScreen?: boolean;
|
||||
allowpopups?: boolean;
|
||||
autoFocus?: boolean;
|
||||
autosize?: boolean;
|
||||
blinkfeatures?: string;
|
||||
disableblinkfeatures?: string;
|
||||
disableguestresize?: boolean;
|
||||
disablewebsecurity?: boolean;
|
||||
guestinstance?: string;
|
||||
httpreferrer?: string;
|
||||
nodeintegration?: boolean;
|
||||
partition?: string;
|
||||
plugins?: boolean;
|
||||
preload?: string;
|
||||
src?: string;
|
||||
useragent?: string;
|
||||
webpreferences?: string;
|
||||
}
|
||||
|
||||
//
|
||||
// React.DOM
|
||||
// ----------------------------------------------------------------------
|
||||
@@ -3382,6 +3402,7 @@ declare namespace React {
|
||||
"var": DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
video: DetailedHTMLFactory<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
|
||||
wbr: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
webview: DetailedHTMLFactory<WebViewHTMLAttributes<HTMLWebViewElement>, HTMLWebViewElement>;
|
||||
}
|
||||
|
||||
interface ReactSVG {
|
||||
@@ -3656,6 +3677,7 @@ declare global {
|
||||
"var": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
video: React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
|
||||
wbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
webview: React.DetailedHTMLProps<React.WebViewHTMLAttributes<HTMLWebViewElement>, HTMLWebViewElement>;
|
||||
|
||||
// SVG
|
||||
svg: React.SVGProps<SVGSVGElement>;
|
||||
|
||||
22
types/react/v15/index.d.ts
vendored
22
types/react/v15/index.d.ts
vendored
@@ -127,6 +127,26 @@ declare namespace React {
|
||||
type: keyof ReactSVG;
|
||||
}
|
||||
|
||||
interface WebViewHTMLAttributes<T> extends HTMLAttributes<T> {
|
||||
allowFullScreen?: boolean;
|
||||
allowpopups?: boolean;
|
||||
autoFocus?: boolean;
|
||||
autosize?: boolean;
|
||||
blinkfeatures?: string;
|
||||
disableblinkfeatures?: string;
|
||||
disableguestresize?: boolean;
|
||||
disablewebsecurity?: boolean;
|
||||
guestinstance?: string;
|
||||
httpreferrer?: string;
|
||||
nodeintegration?: boolean;
|
||||
partition?: string;
|
||||
plugins?: boolean;
|
||||
preload?: string;
|
||||
src?: string;
|
||||
useragent?: string;
|
||||
webpreferences?: string;
|
||||
}
|
||||
|
||||
//
|
||||
// Factories
|
||||
// ----------------------------------------------------------------------
|
||||
@@ -3307,6 +3327,7 @@ declare namespace React {
|
||||
"var": DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
video: DetailedHTMLFactory<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
|
||||
wbr: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
webview: DetailedHTMLFactory<WebViewHTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
}
|
||||
|
||||
interface ReactSVG {
|
||||
@@ -3537,6 +3558,7 @@ declare global {
|
||||
"var": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
video: React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
|
||||
wbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
webview: React.DetailedHTMLProps<React.WebViewHTMLAttributes<HTMLElement>, HTMLElement>;
|
||||
|
||||
// SVG
|
||||
svg: React.SVGProps<SVGSVGElement>;
|
||||
|
||||
Reference in New Issue
Block a user