mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Merge pull request #16008 from DefinitelyTyped/update_react-helmet
[react-helmet] Update react-helmet return type of toComponent()
This commit is contained in:
Vendored
+13
-3
@@ -1,6 +1,6 @@
|
||||
// Type definitions for react-helmet 5.0
|
||||
// Project: https://github.com/nfl/react-helmet
|
||||
// Definitions by: Evan Bremer <https://github.com/evanbb>, Isman Usoh <https://github.com/isman-usoh>, François Nguyen <https://github.com/lith-light-g>, Kok Sam <https://github.com/sammkj>
|
||||
// Definitions by: Evan Bremer <https://github.com/evanbb>, Isman Usoh <https://github.com/isman-usoh>, François Nguyen <https://github.com/lith-light-g>, Kok Sam <https://github.com/sammkj>, Yui T. <https://github.com/yuit>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -32,8 +32,8 @@ export class Helmet extends React.Component<HelmetProps, any> {
|
||||
|
||||
export interface HelmetData {
|
||||
base: HelmetDatum;
|
||||
bodyAttributes: HelmetDatum;
|
||||
htmlAttributes: HelmetDatum;
|
||||
bodyAttributes: HelmetHTMLBodyDatum;
|
||||
htmlAttributes: HelmetHTMLElementDatum;
|
||||
link: HelmetDatum;
|
||||
meta: HelmetDatum;
|
||||
noscript: HelmetDatum;
|
||||
@@ -48,6 +48,16 @@ export interface HelmetDatum {
|
||||
toComponent(): React.Component<any, any>;
|
||||
}
|
||||
|
||||
export interface HelmetHTMLBodyDatum {
|
||||
toString(): string;
|
||||
toComponent(): React.HTMLAttributes<HTMLBodyElement>;
|
||||
}
|
||||
|
||||
export interface HelmetHTMLElementDatum {
|
||||
toString(): string;
|
||||
toComponent(): React.HTMLAttributes<HTMLElement>;
|
||||
}
|
||||
|
||||
export const peek: () => HelmetData;
|
||||
export const rewind: () => HelmetData;
|
||||
export const renderStatic: () => HelmetData;
|
||||
|
||||
Reference in New Issue
Block a user