@types/strip-bom-string added types (#65667)

This commit is contained in:
PWall
2023-06-06 02:13:59 +02:00
committed by GitHub
parent fa492f10c7
commit ebc1cdb2b1
4 changed files with 37 additions and 0 deletions

10
types/strip-bom-string/index.d.ts vendored Normal file
View 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;

View File

@@ -0,0 +1,3 @@
import stripBom = require('strip-bom-string');
stripBom(''); // $ExpectType string

View 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"
]
}

View File

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