@suid/types
Advanced tools
Comparing version 0.1.0 to 0.1.1-next.1
@@ -19,7 +19,7 @@ import { OverridableTypeMap } from "."; | ||
component?: ElementType; | ||
} : T extends SuidComponentType ? DefaultComponentProps<T> : T extends SuidElement<infer C1> ? DefaultComponentProps<C1> : T extends OverridableComponent<infer C2> ? DefaultComponentProps<C2> & { | ||
} : T extends SuidComponentType ? DefaultComponentProps<T> : T extends OverridableComponent<infer C2> ? DefaultComponentProps<C2> & { | ||
component?: ElementType; | ||
} : T extends ElementType ? _ComponentProps<T> : unknown; | ||
export declare type InPropsOf<T> = T extends OverridableTypeMap | SuidComponentType ? OverridableInProps<T> : T extends SuidElement<infer C1> | OverridableComponent<infer C1> ? OverridableInProps<C1> : T extends ElementType ? _ComponentProps<T> : unknown; | ||
export declare type DefaultPropsOf<T> = T extends OverridableTypeMap | SuidComponentType ? OverridableDefaultProps<T> : T extends SuidElement<infer C1> | OverridableComponent<infer C1> ? OverridableDefaultProps<C1> : T extends ElementType ? _ComponentProps<T> : unknown; | ||
export declare type InPropsOf<T> = T extends OverridableTypeMap | SuidComponentType ? OverridableInProps<T> : T extends OverridableComponent<infer C1> ? OverridableInProps<C1> : T extends ElementType ? _ComponentProps<T> : unknown; | ||
export declare type DefaultPropsOf<T> = T extends OverridableTypeMap | SuidComponentType ? OverridableDefaultProps<T> : T extends OverridableComponent<infer C1> ? OverridableDefaultProps<C1> : T extends ElementType ? _ComponentProps<T> : unknown; | ||
export declare type OverridableDefaultProps<T> = DoRequired<Partial<DefaultComponentProps<T> & (T extends OverridableTypeMap ? { | ||
@@ -26,0 +26,0 @@ component: ElementType; |
@@ -7,4 +7,7 @@ import { JSX } from "solid-js"; | ||
declare type EH<T, E extends Event> = JSX.EventHandler<T, E>; | ||
export declare type ChangeEvent<T = Element> = EventParam<T, Event> & { | ||
target: EventTarget & T; | ||
}; | ||
export declare type AnimationEventHandler<T = Element> = EH<T, AnimationEvent>; | ||
export declare type ChangeEventHandler<T = Element, V = string> = (event: Parameters<EH<T, KeyboardEvent>>[0], value: V) => void; | ||
export declare type ChangeEventHandler<T = Element, V = string> = (event: ChangeEvent<T>, value: V) => void; | ||
export declare type ClipboardEventHandler<T = Element> = EH<T, ClipboardEvent>; | ||
@@ -11,0 +14,0 @@ export declare type CompositionEventHandler<T = Element> = EH<T, CompositionEvent>; |
@@ -45,2 +45,3 @@ import { SuidComponentType } from "."; | ||
(props: DefaultComponentProps<M>): JSX.Element; | ||
_suid: true; | ||
} | ||
@@ -47,0 +48,0 @@ /** |
{ | ||
"name": "@suid/types", | ||
"version": "0.1.0", | ||
"version": "0.1.1-next.1", | ||
"description": "Types used by suid packages.", | ||
@@ -44,5 +44,5 @@ "keywords": [ | ||
"peerDependencies": { | ||
"solid-js": "^1.3.7" | ||
"solid-js": "^1.3.17" | ||
}, | ||
"readme": "# @suid/types\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/swordev/suid/CI) ![npm (scoped)](https://img.shields.io/npm/v/@suid/types?label=@suid/types)\n\n## Installation\n\n```sh\nnpm install @suid/types\n```\n\n## Documentation\n\nhttps://suid.io\n\n## License\n\nDistributed under the MIT License. See LICENSE for more information.\n" | ||
} |
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
174
11597