From f687d485ec0acd7df12e15fa95f43ac7671d7ca7 Mon Sep 17 00:00:00 2001 From: Ovidiu Bute Date: Mon, 31 Dec 2018 09:38:40 +0200 Subject: [PATCH] Add missing tagName prop. --- types/linkifyjs/linkifyjs-tests.ts | 5 +---- types/linkifyjs/react.d.ts | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/types/linkifyjs/linkifyjs-tests.ts b/types/linkifyjs/linkifyjs-tests.ts index bd7f67ea51..0376960065 100644 --- a/types/linkifyjs/linkifyjs-tests.ts +++ b/types/linkifyjs/linkifyjs-tests.ts @@ -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") ), diff --git a/types/linkifyjs/react.d.ts b/types/linkifyjs/react.d.ts index ce5dc24896..0631b6c460 100644 --- a/types/linkifyjs/react.d.ts +++ b/types/linkifyjs/react.d.ts @@ -3,6 +3,7 @@ import { LinkifyOptions } from "./index"; export interface LinkifyProps { options?: LinkifyOptions; + tagName?: string; } declare class Linkify extends React.Component {}