forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-helmet.d.ts
39 lines (32 loc) · 985 Bytes
/
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
// Type definitions for react-helmet
// Project: https://github.com/nfl/react-helmet
// Definitions by: Evan Bremer <https://github.com/evanbb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
declare module 'react-helmet' {
import { Component } from 'react';
interface HelmetProps {
title?: string;
titleTemplate?: string;
base?: any;
link?: Array<any>;
meta?: Array<any>;
script?: Array<any>;
onChangeClientState?: (newState: any) => void;
}
interface HelmetData {
title: HelmetDatum;
base: HelmetDatum;
link: HelmetDatum;
meta: HelmetDatum;
script: HelmetDatum;
}
interface HelmetDatum {
toString(): string;
toComponent(): Component<any, any>;
}
class Helmet extends Component<HelmetProps, any> {
static rewind(): HelmetData
}
export default Helmet;
}