mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
trim-newlines: Delete obsolete type definitions (#35094)
As of 3.0.0 trim-newlines distributes its own type definitions.
This commit is contained in:
committed by
Wesley Wigham
parent
643a6001f3
commit
04b0dd9394
@@ -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",
|
||||
|
||||
Vendored
-13
@@ -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");
|
||||
@@ -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 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user