Deprecate @types/filter-invalid-dom-props (#65663)

This commit is contained in:
Ismail Elshakankiry
2023-06-05 20:14:54 -04:00
committed by GitHub
parent ebc1cdb2b1
commit a8724de9b4
5 changed files with 4 additions and 39 deletions

View File

@@ -1765,6 +1765,10 @@
"libraryName": "filter-console",
"asOfVersion": "0.1.1"
},
"filter-invalid-dom-props": {
"libraryName": "filter-invalid-dom-props",
"asOfVersion": "3.0.0"
},
"find-java-home": {
"libraryName": "find-java-home",
"asOfVersion": "1.0.0"

View File

@@ -1,4 +0,0 @@
import filterInvalidDomProps from 'filter-invalid-dom-props';
// $ExpectType Partial<{ notADomProp: boolean; }>
filterInvalidDomProps({ notADomProp: true });

View File

@@ -1,11 +0,0 @@
// Type definitions for filter-invalid-dom-props 2.0
// Project: https://www.npmjs.com/package/filter-invalid-dom-props
// Definitions by: icopp <https://github.com/icopp>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
// Note that the below can't actually be fully typed in the latest version of
// Typescript, because there's no way to regex-match against `data-` or `aria-`
// (which this function allows in addition to a list of static props).
export default function filterInvalidDOMProps<T>(props: T): Partial<T>;

View File

@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"filter-invalid-dom-props-tests.ts"
]
}

View File

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