mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
Deprecate @types/filter-invalid-dom-props (#65663)
This commit is contained in:
committed by
GitHub
parent
ebc1cdb2b1
commit
a8724de9b4
@@ -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"
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
import filterInvalidDomProps from 'filter-invalid-dom-props';
|
||||
|
||||
// $ExpectType Partial<{ notADomProp: boolean; }>
|
||||
filterInvalidDomProps({ notADomProp: true });
|
||||
11
types/filter-invalid-dom-props/index.d.ts
vendored
11
types/filter-invalid-dom-props/index.d.ts
vendored
@@ -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>;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "@definitelytyped/dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user