@types/linkify-it
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -1,5 +0,6 @@ | ||
// Type definitions for linkify-it 2.0.3 | ||
// Type definitions for linkify-it 2.1.0 | ||
// Project: https://github.com/markdown-it/linkify-it | ||
// Definitions by: Lindsey Smith <https://github.com/praxxis>, Robert Coie <https://github.com/rapropos/typed-linkify-it> | ||
// Definitions by: Lindsey Smith <https://github.com/praxxis>, Robert Coie <https://github.com/rapropos/typed-linkify-it>, Alex Plumb <https://github.com/alexplumb> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
@@ -18,7 +19,7 @@ declare const LinkifyIt: { | ||
declare namespace LinkifyIt { | ||
type Validate = (text: string, pos: number, self: LinkifyIt) => number; | ||
type Validate = (text: string, pos: number, self: LinkifyIt) => number | boolean; | ||
interface FullRule { | ||
validate: string | RegExp | Validate; | ||
normalize?(match: string): string; | ||
normalize?: (match: Match) => void; | ||
} | ||
@@ -56,2 +57,5 @@ | ||
tlds(list: string | string[], keepOld?: boolean): LinkifyIt; | ||
re: { | ||
[key: string]: RegExp; | ||
}; | ||
} | ||
@@ -58,0 +62,0 @@ } |
{ | ||
"name": "@types/linkify-it", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "TypeScript definitions for linkify-it", | ||
@@ -15,14 +15,20 @@ "license": "MIT", | ||
"url": "https://github.com/rapropos/typed-linkify-it" | ||
}, | ||
{ | ||
"name": "Alex Plumb", | ||
"url": "https://github.com/alexplumb", | ||
"githubUsername": "alexplumb" | ||
} | ||
], | ||
"main": "", | ||
"types": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/linkify-it" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b6a96beea207e578ae7528dea48b5e6591b49111fb1b821902b2d5ce021fdd5f", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "d1dbd853f537e9c3e59a0dc8d197d467461c685de48a7e98bdf50661f333c539", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for linkify-it (https://github.com/markdown-it/linkify-it). | ||
This package contains type definitions for linkify-it ( https://github.com/markdown-it/linkify-it ). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Wed, 17 Oct 2018 17:46:09 GMT | ||
* Last updated: Tue, 12 Mar 2019 18:01:38 GMT | ||
* Dependencies: none | ||
@@ -18,2 +18,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Lindsey Smith <https://github.com/praxxis>, Robert Coie <https://github.com/rapropos/typed-linkify-it>. | ||
These definitions were written by Lindsey Smith <https://github.com/praxxis>, Robert Coie <https://github.com/rapropos/typed-linkify-it>, Alex Plumb <https://github.com/alexplumb>. |
4545
53