add braintree-sanitize-url types (#43343)

This commit is contained in:
Krzysztof Żuraw 2020-04-01 00:23:03 +02:00 committed by GitHub
parent 9a4e62fa4d
commit 8029da9be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import * as sanitizeUrl from "braintree__sanitize-url";
sanitizeUrl.sanitizeUrl(""); // $ExpectType string

View 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;

View 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"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }