-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreact-helmet_v5.x.x.js
56 lines (49 loc) · 1.47 KB
/
react-helmet_v5.x.x.js
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
47
48
49
50
51
52
53
54
55
// flow-typed signature: 011286c5f647bbe6a0fe93c2faef19f0
// flow-typed version: e36161f044/react-helmet_v5.x.x/flow_>=v0.53.x
import type { Node, Element } from 'react';
declare module 'react-helmet' {
declare type Props = {
base?: Object,
bodyAttributes?: Object,
children?: Node,
defaultTitle?: string,
defer?: boolean,
encodeSpecialCharacters?: boolean,
htmlAttributes?: Object,
link?: Array<Object>,
meta?: Array<Object>,
noscript?: Array<Object>,
onChangeClientState?: (
newState?: Object,
addedTags?: Object,
removeTags?: Object
) => any,
script?: Array<Object>,
style?: Array<Object>,
title?: string,
titleAttributes?: Object,
titleTemplate?: string,
}
declare interface TagMethods {
toString(): string;
toComponent(): [Element<*>] | Element<*> | Array<Object>;
}
declare interface StateOnServer {
base: TagMethods;
bodyAttributes: TagMethods,
htmlAttributes: TagMethods;
link: TagMethods;
meta: TagMethods;
noscript: TagMethods;
script: TagMethods;
style: TagMethods;
title: TagMethods;
}
declare class Helmet extends React$Component<Props> {
static rewind(): StateOnServer;
static renderStatic(): StateOnServer;
static canUseDom(canUseDOM: boolean): void;
}
declare export default typeof Helmet
declare export var Helmet: typeof Helmet
}