mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
@types/strip-bom-string added types (#65667)
This commit is contained in:
10
types/strip-bom-string/index.d.ts
vendored
Normal file
10
types/strip-bom-string/index.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Type definitions for strip-bom-string 1.0
|
||||
// Project: https://github.com/jonschlinkert/strip-bom-string
|
||||
// Definitions by: PWall <https://github.com/pwall2222>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
declare function stripBom(str: string): string;
|
||||
|
||||
export = stripBom;
|
||||
3
types/strip-bom-string/strip-bom-string-tests.ts
Normal file
3
types/strip-bom-string/strip-bom-string-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import stripBom = require('strip-bom-string');
|
||||
|
||||
stripBom(''); // $ExpectType string
|
||||
23
types/strip-bom-string/tsconfig.json
Normal file
23
types/strip-bom-string/tsconfig.json
Normal 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",
|
||||
"strip-bom-string-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/strip-bom-string/tslint.json
Normal file
1
types/strip-bom-string/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "@definitelytyped/dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user