🤖 Merge PR #65838 chore: remove @aero/sanitizer types by @ImRodry

This commit is contained in:
Rodrigo Leitão
2023-06-20 20:30:33 +01:00
committed by GitHub
parent 56fbb35fb4
commit 16c0ed21f0
5 changed files with 4 additions and 45 deletions

View File

@@ -40,6 +40,10 @@
"libraryName": "@adobe/node-fetch-retry",
"asOfVersion": "2.1.0"
},
"aero__sanitizer": {
"libraryName": "@aero/sanitizer",
"asOfVersion": "1.3.2"
},
"ag-grid": {
"libraryName": "ag-grid",
"asOfVersion": "3.2.0"

View File

@@ -1,5 +0,0 @@
import clean = require('aero__sanitizer');
clean('Thís îs à stríng with ãççénts'); // $ExpectType string
// @ts-expect-error
clean(1);

View File

@@ -1,16 +0,0 @@
// Type definitions for aero__sanitizer 1.2
// Project: https://git.farfrom.earth/aero/forks/sanitizer
// Definitions by: Rodry <https://github.com/ImRodry>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Sanitizes a given input string by transforming all characters into latin characters and removing accents.
* @param str The string to sanitize.
* @example
* clean("aéà)àçé"); // 'aea)ace'
* @example
* clean("に間違いがないか、再度確認してください。再読み込みしてください。"); // niJian Wei iganaika, Zai Du Que Ren sitekudasai. Zai Du miIp misitekudasai.
*/
declare function clean(str: string): string;
export = clean;

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",
"aero__sanitizer-tests.ts"
]
}

View File

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