Added type definitions for react-highlighter (#10786)

This commit is contained in:
Pedro Pereira
2016-08-30 13:17:45 +01:00
committed by Masahiro Wakame
parent bac569d9ac
commit c9848c3240
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/// <reference path="react-highlighter.d.ts" />
/// <reference path="../react/react.d.ts" />
import * as React from 'react';
import * as Highlight from 'react-highlighter';
export class ReactHolderTest extends React.Component<any, any> {
public render() {
return (
<div>
<Highlight
search="test">test</Highlight>
</div>
);
}
}

View File

@@ -0,0 +1,9 @@
// Type definitions for react-highlighter
// Project: https://github.com/helior/react-highlighter
// Definitions by: Pedro Pereira <https://github.com/oizie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "react-highlighter" {
var Highlight: any;
export = Highlight;
}