@quilted/preact-testing
Advanced tools
Comparing version 0.0.0-preview-20231204005812 to 0.0.0-preview-20240406193540
@@ -16,3 +16,3 @@ /// <reference types="react" /> | ||
type MaybeFunctionParameters<T> = T extends (...args: any[]) => any ? Parameters<T> : []; | ||
export interface Root<Props, Context extends PlainObject = EmptyObject, Actions extends PlainObject = EmptyObject> extends Node<Props> { | ||
export interface Root<Props, Context extends PlainObject = EmptyObject, Actions extends PlainObject = EmptyObject> extends Node<Props>, Disposable { | ||
readonly context: Context; | ||
@@ -19,0 +19,0 @@ readonly actions: Actions; |
# @quilted/react-testing | ||
## 0.0.0-preview-20231204005812 | ||
## 0.0.0-preview-20240406193540 | ||
### Patch Changes | ||
- Update Preact versions | ||
- Add support for explicit resource management | ||
## 0.1.4 | ||
### Patch Changes | ||
- [`3e07e287`](https://github.com/lemonmade/quilt/commit/3e07e287a68f5ba1059564c44df5a0469ac02982) Thanks [@lemonmade](https://github.com/lemonmade)! - Add support for explicit resource management | ||
## 0.1.3 | ||
@@ -10,0 +16,0 @@ |
{ | ||
"name": "@quilted/preact-testing", | ||
"type": "module", | ||
"version": "0.0.0-preview-20231204005812", | ||
"version": "0.0.0-preview-20240406193540", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -10,4 +10,4 @@ import type {ComponentType, Context} from 'preact'; | ||
: U extends EmptyObject | ||
? T | ||
: T & U; | ||
? T | ||
: T & U; | ||
@@ -18,7 +18,7 @@ export type PropsFor<T extends string | ComponentType<any>> = T extends string | ||
: T extends ComponentType<infer Props> | ||
? Props | ||
: never | ||
: T extends ComponentType<infer Props> | ||
? Props | ||
: never | ||
: T extends ComponentType<infer Props> | ||
? Props | ||
: never; | ||
: never; | ||
@@ -34,8 +34,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; | ||
@@ -55,3 +55,4 @@ export type Predicate = (node: Node<unknown>) => boolean; | ||
Actions extends PlainObject = EmptyObject, | ||
> extends Node<Props> { | ||
> extends Node<Props>, | ||
Disposable { | ||
readonly context: Context; | ||
@@ -58,0 +59,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
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
74
2844
252213