Comparing version 1.2.1 to 1.2.2
@@ -16,8 +16,8 @@ export as namespace hyperapp | ||
/** A Component is a function that returns a custom VNode. | ||
/** A Component is a function that returns a custom VNode or View. | ||
* | ||
* @memberOf [VDOM] | ||
*/ | ||
export interface Component<Attributes = {}> { | ||
(attributes: Attributes, children: Array<VNode | string>): VNode<Attributes> | ||
export interface Component<Attributes = {}, State = {}, Actions = {}> { | ||
(attributes: Attributes, children: Array<VNode | string>): VNode<Attributes> | View<State, Actions> | ||
} | ||
@@ -39,3 +39,3 @@ | ||
export function h<Attributes>( | ||
nodeName: Component<Attributes> | string, | ||
nodeName: Component<Attributes, any, any> | string, | ||
attributes?: Attributes, | ||
@@ -101,3 +101,3 @@ ...children: Array<Children | Children[]> | ||
namespace JSX { | ||
interface Element<Data> extends VNode<object> {} | ||
interface Element extends VNode<any> {} | ||
interface IntrinsicElements { | ||
@@ -104,0 +104,0 @@ [elemName: string]: any |
{ | ||
"name": "hyperapp", | ||
"description": "1 kB JavaScript framework for building web applications.", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "dist/hyperapp.js", | ||
@@ -6,0 +6,0 @@ "module": "src/index.js", |
@@ -498,7 +498,7 @@ # <img height=24 src=https://cdn.rawgit.com/jorgebucaran/f53d2c00bafcf36e84ffd862f0dc2950/raw/882f20c970ff7d61aa04d44b92fc3530fa758bc0/Hyperapp.svg> Hyperapp | ||
## Community | ||
## Links | ||
* [Slack](https://hyperappjs.herokuapp.com) | ||
* [Twitter](https://twitter.com/hyperappJS) | ||
* [CodePen](https://codepen.io/hyperapp) | ||
* [Examples](https://codepen.io/search/pens/?q=hyperapp) | ||
* [/r/hyperapp](https://www.reddit.com/r/hyperapp) | ||
@@ -505,0 +505,0 @@ |
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
55939