forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-helmet.d.ts
46 lines (38 loc) · 1.18 KB
/
react-helmet.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Type definitions for react-helmet
// Project: https://github.com/nfl/react-helmet
// Definitions by: Evan Bremer <https://github.com/evanbb>, Isman Usoh <https://github.com/isman-usoh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
declare namespace ReactHelmet {
import React = __React;
interface HelmetProps {
base?: any;
htmlAttributes?: any;
link?: Array<any>;
meta?: Array<any>;
script?: Array<any>;
title?: string;
titleTemplate?: string;
onChangeClientState?: (newState: any) => void;
}
interface HelmetData {
base: HelmetDatum;
htmlAttributes: HelmetDatum;
link: HelmetDatum;
meta: HelmetDatum;
script: HelmetDatum;
title: HelmetDatum;
}
interface HelmetDatum {
toString(): string;
toComponent(): React.Component<any, any>;
}
class HelmetComponent extends React.Component<HelmetProps, any> {}
}
declare module "react-helmet" {
var Helmet: {
(): ReactHelmet.HelmetComponent
rewind(): ReactHelmet.HelmetData
}
export = Helmet;
}