Add missing tagName prop.

This commit is contained in:
Ovidiu Bute
2018-12-31 09:38:40 +02:00
parent 793383d2a4
commit f687d485ec
2 changed files with 2 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ import linkifyHtml from "linkifyjs/html";
import Linkify from "linkifyjs/react";
declare function describe(desc: string, f: () => void): void;
declare function it(desc: string, f: () => void): void;
describe("linkifyjs/html", () => {
// From the docs here: https://soapbox.github.io/linkifyjs/docs/options.html
@@ -180,9 +179,7 @@ describe("linkifyjs/react", () => {
React.createElement(
Linkify,
{
options: {
tagName: "p"
}
tagName: "p"
},
React.createElement("span", "Hello https://google.com")
),

View File

@@ -3,6 +3,7 @@ import { LinkifyOptions } from "./index";
export interface LinkifyProps {
options?: LinkifyOptions;
tagName?: string;
}
declare class Linkify extends React.Component<LinkifyProps> {}