Removed parse-duration since they now have their own TS definitions (#44335)

This commit is contained in:
Richard Simko 2020-05-05 19:44:37 +02:00 committed by GitHub
parent 04101f12d7
commit 941e065fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 43 deletions

View File

@ -3486,6 +3486,12 @@
"sourceRepoURL": "https://github.com/sindresorhus/parse-columns",
"asOfVersion": "2.0.0"
},
{
"libraryName": "parse-duration",
"typingsPackageName": "parse-duration",
"sourceRepoURL": "https://github.com/jkroso/parse-duration",
"asOfVersion": "0.3.0"
},
{
"libraryName": "parse-ms",
"typingsPackageName": "parse-ms",

View File

@ -1,11 +0,0 @@
// Type definitions for parse-duration 0.1
// Project: https://github.com/jkroso/parse-duration#readme
// Definitions by: Richard Simko <https://github.com/richardsimko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* convert `str` to ms
*/
declare function parse(str: string): number;
export = parse;

View File

@ -1,7 +0,0 @@
import parse = require('parse-duration');
parse('1y');
parse('1hr 20mins');
parse('running length: 1hour:20mins');

View File

@ -1,24 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true
},
"files": [
"index.d.ts",
"parse-duration-tests.ts"
]
}

View File

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