@quilted/react-testing
Advanced tools
Comparing version 0.0.0-preview-20240312153802 to 0.0.0-preview-20240406193540
@@ -15,3 +15,3 @@ import type { ComponentType, ComponentPropsWithoutRef, HTMLAttributes, Context } from 'react'; | ||
type MaybeFunctionParameters<T> = T extends (...args: any[]) => any ? Parameters<T> : []; | ||
export interface RootApi<Props, Context extends PlainObject = EmptyObject, Actions extends PlainObject = EmptyObject> { | ||
export interface RootApi<Props, Context extends PlainObject = EmptyObject, Actions extends PlainObject = EmptyObject> extends Disposable { | ||
readonly context: Context; | ||
@@ -18,0 +18,0 @@ readonly actions: Actions; |
# @quilted/react-testing | ||
## 0.0.0-preview-20240312153802 | ||
## 0.0.0-preview-20240406193540 | ||
### Patch Changes | ||
- Add back CommonJS entry for react-testing package | ||
- Add support for explicit resource management | ||
- Updated dependencies []: | ||
- @quilted/preact-testing@0.0.0-preview-20240406193540 | ||
## 0.6.8 | ||
### Patch Changes | ||
- [`3e07e287`](https://github.com/lemonmade/quilt/commit/3e07e287a68f5ba1059564c44df5a0469ac02982) Thanks [@lemonmade](https://github.com/lemonmade)! - Add support for explicit resource management | ||
## 0.6.7 | ||
@@ -10,0 +19,0 @@ |
{ | ||
"name": "@quilted/react-testing", | ||
"type": "module", | ||
"version": "0.0.0-preview-20240312153802", | ||
"version": "0.0.0-preview-20240406193540", | ||
"repository": { | ||
@@ -71,3 +71,3 @@ "type": "git", | ||
"dependencies": { | ||
"@quilted/preact-testing": "^0.1.0", | ||
"@quilted/preact-testing": "0.0.0-preview-20240406193540", | ||
"jest-matcher-utils": "^27.0.0" | ||
@@ -74,0 +74,0 @@ }, |
@@ -15,4 +15,4 @@ import type { | ||
: U extends EmptyObject | ||
? T | ||
: T & U; | ||
? T | ||
: T & U; | ||
@@ -23,7 +23,7 @@ export type PropsFor<T extends string | ComponentType<any>> = T extends string | ||
: T extends ComponentType<any> | ||
? ComponentPropsWithoutRef<T> | ||
: HTMLAttributes<T> | ||
: T extends ComponentType<any> | ||
? ComponentPropsWithoutRef<T> | ||
: HTMLAttributes<T> | ||
: T extends ComponentType<any> | ||
? ComponentPropsWithoutRef<T> | ||
: never; | ||
: never; | ||
@@ -39,8 +39,8 @@ export type FunctionKeys<T> = { | ||
: T extends readonly (infer U)[] | ||
? readonly DeepPartial<U>[] | ||
: T extends PlainObject | ||
? { | ||
[K in keyof T]?: DeepPartial<T[K]>; | ||
} | ||
: T; | ||
? readonly DeepPartial<U>[] | ||
: T extends PlainObject | ||
? { | ||
[K in keyof T]?: DeepPartial<T[K]>; | ||
} | ||
: T; | ||
@@ -62,3 +62,3 @@ export type Predicate<Extensions extends PlainObject> = ( | ||
Actions extends PlainObject = EmptyObject, | ||
> { | ||
> extends Disposable { | ||
readonly context: Context; | ||
@@ -65,0 +65,0 @@ readonly actions: Actions; |
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
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
Sorry, the diff of this file is not supported yet
334338
4580
+ Added@quilted/preact-testing@0.0.0-preview-20240406193540(transitive)
- Removed@quilted/preact-testing@0.1.8(transitive)