Added TagUpdates type for onChangeClientState (#37242)

This commit is contained in:
Alexander Cerutti
2019-08-05 11:29:28 -07:00
committed by Nathan Shively-Sanders
parent ba2393d40d
commit 467ae78f50
+10 -1
View File
@@ -10,6 +10,15 @@ type LinkProps = JSX.IntrinsicElements['link'];
type MetaProps = JSX.IntrinsicElements['meta'];
interface TagUpdates {
baseTag: Array<any>;
linkTags: Array<HTMLLinkElement>;
metaTags: Array<HTMLMetaElement>;
noscriptTags: Array<any>;
scriptTags: Array<HTMLScriptElement>;
styleTags: Array<HTMLStyleElement>;
}
export interface HelmetProps {
async?: boolean;
base?: any;
@@ -18,7 +27,7 @@ export interface HelmetProps {
defer?: boolean;
encodeSpecialCharacters?: boolean;
htmlAttributes?: any;
onChangeClientState?: (newState: any) => void;
onChangeClientState?: (newState: any, addedTags: TagUpdates, removedTags: TagUpdates) => void;
link?: LinkProps[];
meta?: MetaProps[];
noscript?: Array<any>;