Address PR: split BodyAttribute data and HTMLElement data

This commit is contained in:
Kanchalai Tanglertsampan 2017-04-25 09:55:51 -07:00
parent b8848ee8ca
commit 49b9b5a2a2

View File

@ -32,8 +32,8 @@ export class Helmet extends React.Component<HelmetProps, any> {
export interface HelmetData {
base: HelmetDatum;
bodyAttributes: HelmetAttributesTagObject;
htmlAttributes: HelmetAttributesTagObject;
bodyAttributes: HelmetHTMLBodyDatum;
htmlAttributes: HelmetHTMLElementDatum;
link: HelmetDatum;
meta: HelmetDatum;
noscript: HelmetDatum;
@ -48,9 +48,14 @@ export interface HelmetDatum {
toComponent(): React.Component<any, any>;
}
export interface HelmetAttributesTagObject {
export interface HelmetHTMLBodyDatum {
toString(): string;
toComponent(): React.HTMLAttributes<HTMLBodyElement | HTMLElement>;
toComponent(): React.HTMLAttributes<HTMLBodyElement>;
}
export interface HelmetHTMLElementDatum {
toString(): string;
toComponent(): React.HTMLAttributes<HTMLElement>;
}
export const peek: () => HelmetData;