@types/enzyme
Advanced tools
Comparing version 3.10.13 to 3.10.14
@@ -22,7 +22,7 @@ // Type definitions for Enzyme 3.10 | ||
import { | ||
AllHTMLAttributes as ReactHTMLAttributes, | ||
Component, | ||
ReactElement, | ||
Component, | ||
AllHTMLAttributes as ReactHTMLAttributes, | ||
SVGAttributes as ReactSVGAttributes, | ||
} from 'react'; | ||
} from "react"; | ||
@@ -38,3 +38,3 @@ export type HTMLAttributes = ReactHTMLAttributes<{}> & ReactSVGAttributes<{}>; | ||
export interface ComponentClass<Props> { | ||
new (props: Props, context?: any): Component<Props>; | ||
new(props: Props, context?: any): Component<Props>; | ||
} | ||
@@ -115,3 +115,3 @@ | ||
}[keyof P] | ||
> | ||
>, | ||
>( | ||
@@ -415,4 +415,4 @@ invokePropName: K, | ||
find<C2 extends Component>( | ||
componentClass: ComponentClass<C2['props']>, | ||
): ShallowWrapper<C2['props'], C2['state'], C2>; | ||
componentClass: ComponentClass<C2["props"]>, | ||
): ShallowWrapper<C2["props"], C2["state"], C2>; | ||
find(props: EnzymePropSelector): ShallowWrapper<any, any>; | ||
@@ -453,3 +453,3 @@ find(selector: string): ShallowWrapper<HTMLAttributes, any>; | ||
*/ | ||
dive<C2 extends Component, P2 = C2['props'], S2 = C2['state']>( | ||
dive<C2 extends Component, P2 = C2["props"], S2 = C2["state"]>( | ||
options?: ShallowRendererProps, | ||
@@ -551,3 +551,3 @@ ): ShallowWrapper<P2, S2, C2>; | ||
find<P2>(component: ComponentType<P2>): ReactWrapper<P2, any>; | ||
find<C2 extends Component>(componentClass: ComponentClass<C2['props']>): ReactWrapper<C2['props'], C2['state'], C2>; | ||
find<C2 extends Component>(componentClass: ComponentClass<C2["props"]>): ReactWrapper<C2["props"], C2["state"], C2>; | ||
find(props: EnzymePropSelector): ReactWrapper<any, any>; | ||
@@ -614,3 +614,3 @@ find(selector: string): ReactWrapper<HTMLAttributes, any>; | ||
*/ | ||
renderProp<PropName extends keyof P>( | ||
renderProp<PropName extends keyof P>( | ||
prop: PropName, | ||
@@ -722,3 +722,3 @@ ): (...params: Parameters<P[PropName]>) => ReactWrapper<any, never>; | ||
*/ | ||
export function shallow<C extends Component, P = C['props'], S = C['state']>( | ||
export function shallow<C extends Component, P = C["props"], S = C["state"]>( | ||
node: ReactElement<P>, | ||
@@ -733,3 +733,3 @@ options?: ShallowRendererProps, | ||
*/ | ||
export function mount<C extends Component, P = C['props'], S = C['state']>( | ||
export function mount<C extends Component, P = C["props"], S = C["state"]>( | ||
node: ReactElement<P>, | ||
@@ -736,0 +736,0 @@ options?: MountRendererProps, |
{ | ||
"name": "@types/enzyme", | ||
"version": "3.10.13", | ||
"version": "3.10.14", | ||
"description": "TypeScript definitions for Enzyme", | ||
@@ -90,4 +90,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/enzyme", | ||
}, | ||
"typesPublisherContentHash": "7ef9ca840c17311aab5005a8f854ab9d538aeaaf938ecf89737765abc1302b1f", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "8df2a3d23a9df9eebd17dfbaad05aaae0bf603b6445b65fbc00aa78aaa918fb2", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 15 Apr 2023 21:02:45 GMT | ||
* Last updated: Sat, 23 Sep 2023 17:07:22 GMT | ||
* Dependencies: [@types/cheerio](https://npmjs.com/package/@types/cheerio), [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
34989