mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Added TagUpdates type for onChangeClientState (#37242)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
ba2393d40d
commit
467ae78f50
Vendored
+10
-1
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user