trim-newlines: Delete obsolete type definitions (#35094)

As of 3.0.0 trim-newlines distributes its own type definitions.
This commit is contained in:
Daniel Cassidy
2019-04-30 09:36:20 -07:00
committed by Wesley Wigham
parent 643a6001f3
commit 04b0dd9394
5 changed files with 6 additions and 47 deletions
+6
View File
@@ -3126,6 +3126,12 @@
"sourceRepoURL": "https://github.com/sindresorhus/trash",
"asOfVersion": "5.0.1"
},
{
"libraryName": "trim-newlines",
"typingsPackageName": "trim-newlines",
"sourceRepoURL": "https://github.com/sindresorhus/trim-newlines",
"asOfVersion": "3.0.0"
},
{
"libraryName": "TsMonad",
"typingsPackageName": "tsmonad",
-13
View File
@@ -1,13 +0,0 @@
// Type definitions for trim-newlines 2.0
// Project: https://github.com/sindresorhus/trim-newlines#readme
// Definitions by: Daniel Cassidy <https://github.com/djcsdy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function trimNewlines(input: string): string;
declare namespace trimNewlines {
function start(input: string): string;
function end(input: string): string;
}
export = trimNewlines;
@@ -1,10 +0,0 @@
import trimNewlines = require("trim-newlines");
// $ExpectType string
trimNewlines('\nunicorn\r\n');
// $ExpectType string
trimNewlines.start("\n\npony\n");
// $ExpectType string
trimNewlines.end("\ndonk\n\n");
-23
View File
@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"trim-newlines-tests.ts"
]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }