react-children-utilities
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -1,4 +0,6 @@ | ||
import { ReactNode } from 'react'; | ||
declare const hasChildren: (element: ReactNode) => boolean; | ||
import { ReactElement, ReactNode } from 'react'; | ||
declare const hasChildren: (element: ReactNode) => element is ReactElement<{ | ||
children: ReactNode[]; | ||
}, string | ((props: any) => ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>; | ||
export default hasChildren; | ||
//# sourceMappingURL=hasChildren.d.ts.map |
{ | ||
"name": "react-children-utilities", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "Recursive and extended utils for React children opaque data structure", | ||
@@ -57,6 +57,6 @@ "keywords": [ | ||
"@types/jest": "^25.1.4", | ||
"@types/react": "^16.9.23", | ||
"@types/react": "^16.9.25", | ||
"@types/react-dom": "^16.9.5", | ||
"@typescript-eslint/eslint-plugin": "^2.22.0", | ||
"@typescript-eslint/parser": "^2.22.0", | ||
"@typescript-eslint/eslint-plugin": "^2.24.0", | ||
"@typescript-eslint/parser": "^2.24.0", | ||
"all-contributors-cli": "^6.14.0", | ||
@@ -70,3 +70,3 @@ "bundlesize": "^0.18.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-airbnb": "^18.1.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
@@ -78,4 +78,4 @@ "eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-react": "^7.19.0", | ||
"eslint-plugin-react-hooks": "^2.5.0", | ||
"flow-bin": "^0.120.1", | ||
"eslint-plugin-react-hooks": "^2.5.1", | ||
"flow-bin": "^0.121.0", | ||
"flowgen": "^1.10.0", | ||
@@ -92,7 +92,7 @@ "husky": "^4.2.3", | ||
"raf": "^3.4.1", | ||
"react": "^16.13.0", | ||
"react-dom": "^16.13.0", | ||
"react-test-renderer": "^16.13.0", | ||
"rollup": "^2.0.2", | ||
"rollup-plugin-terser": "^5.2.0", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-test-renderer": "^16.13.1", | ||
"rollup": "^2.1.0", | ||
"rollup-plugin-terser": "^5.3.0", | ||
"ts-jest": "^25.2.1", | ||
@@ -99,0 +99,0 @@ "typescript": "^3.8.3" |
@@ -19,3 +19,5 @@ /// <reference types="react" /> | ||
groupByType: (children: import("react").ReactNode, types?: import("react").ReactNode[], rest?: string) => import("./lib/groupByType").GroupedChildren; | ||
hasChildren: (element: import("react").ReactNode) => boolean; | ||
hasChildren: (element: import("react").ReactNode) => element is import("react").ReactElement<{ | ||
children: import("react").ReactNode[]; | ||
}, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>; | ||
hasComplexChildren: (element: import("react").ReactNode) => boolean; | ||
@@ -22,0 +24,0 @@ onlyText: (children: import("react").ReactNode) => string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51449
212