mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Removed parse-duration since they now have their own TS definitions (#44335)
This commit is contained in:
parent
04101f12d7
commit
941e065fbe
@ -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",
|
||||
|
||||
11
types/parse-duration/index.d.ts
vendored
11
types/parse-duration/index.d.ts
vendored
@ -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;
|
||||
@ -1,7 +0,0 @@
|
||||
import parse = require('parse-duration');
|
||||
|
||||
parse('1y');
|
||||
|
||||
parse('1hr 20mins');
|
||||
|
||||
parse('running length: 1hour:20mins');
|
||||
@ -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"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user