mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
adding d.ts
This commit is contained in:
Vendored
+39
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user