mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add braintree-sanitize-url types (#43343)
This commit is contained in:
parent
9a4e62fa4d
commit
8029da9be3
@ -0,0 +1,3 @@
|
||||
import * as sanitizeUrl from "braintree__sanitize-url";
|
||||
|
||||
sanitizeUrl.sanitizeUrl(""); // $ExpectType string
|
||||
6
types/braintree__sanitize-url/index.d.ts
vendored
Normal file
6
types/braintree__sanitize-url/index.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
// Type definitions for @braintree/sanitize-url 4.0
|
||||
// Project: https://github.com/braintree/sanitize-url#readme
|
||||
// Definitions by: Krzysztof Żuraw <https://github.com/krzysztofzuraw>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function sanitizeUrl(url: string): string;
|
||||
23
types/braintree__sanitize-url/tsconfig.json
Normal file
23
types/braintree__sanitize-url/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"braintree__sanitize-url-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/braintree__sanitize-url/tslint.json
Normal file
1
types/braintree__sanitize-url/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user