@types/slug
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -28,12 +28,12 @@ // Type definitions for slug 5.0 | ||
interface Mode { | ||
charmap?: CharMap | null; | ||
lower?: boolean | null; | ||
multicharmap?: CharMap | null; | ||
remove?: RegExp | null; | ||
replacement?: string | null; | ||
symbols?: boolean | null; | ||
charmap?: CharMap | null | undefined; | ||
lower?: boolean | null | undefined; | ||
multicharmap?: CharMap | null | undefined; | ||
remove?: RegExp | null | undefined; | ||
replacement?: string | null | undefined; | ||
symbols?: boolean | null | undefined; | ||
} | ||
type Options = { | ||
locale?: string; | ||
locale?: string | undefined; | ||
} & Partial<Mode>; | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "@types/slug", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "TypeScript definitions for slug", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slug", | ||
"license": "MIT", | ||
@@ -22,4 +23,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6f2aab1facaf5f1cdf642271751fd2676a0b89d263b21d7a126a3a0b4be74b82", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "046e9138dbf472a71e816ab850f51d2b464daa364777a152ca825abdd445887f", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,50 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slug. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slug/index.d.ts) | ||
````ts | ||
// Type definitions for slug 5.0 | ||
// Project: https://github.com/trott/node-slug | ||
// Definitions by: Mohamed Hegazy <https://github.com/mhegazy> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export = slug; | ||
declare function slug(string: string, replacement: string): string; | ||
declare function slug(string: string, opts?: slug.Options): string; | ||
declare namespace slug { | ||
const charmap: CharMap; | ||
const defaults: { | ||
charmap: CharMap; | ||
mode: string; | ||
modes: { | ||
pretty: Mode; | ||
rfc3986: Mode; | ||
}; | ||
multicharmap: CharMap; | ||
}; | ||
const multicharmap: CharMap; | ||
function extend(entry: CharMap): void; | ||
function reset(): void; | ||
interface Mode { | ||
charmap?: CharMap | null | undefined; | ||
lower?: boolean | null | undefined; | ||
multicharmap?: CharMap | null | undefined; | ||
remove?: RegExp | null | undefined; | ||
replacement?: string | null | undefined; | ||
symbols?: boolean | null | undefined; | ||
} | ||
type Options = { | ||
locale?: string | undefined; | ||
} & Partial<Mode>; | ||
type CharMap = Record<string, string>; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 24 May 2021 11:31:33 GMT | ||
* Last updated: Tue, 06 Jul 2021 16:34:58 GMT | ||
* Dependencies: none | ||
@@ -14,0 +59,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4809
0
62