Skip to content

Commit 89fd093

Browse files
committed
0.2.1
1 parent 93a345e commit 89fd093

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

dist/hyperapp-devtools.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hyperapp-devtools.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hyperapp-devtools.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/hoa.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import { ActionsType, View } from "hyperapp";
1+
import { ActionsType } from "hyperapp";
22
export declare const guid: () => any;
3+
export interface View<AppState = any, AppActions = any> {
4+
(state: AppState, actions: AppActions): any;
5+
}
36
export interface App<AppState = any, AppActions = any> {
47
(state: AppState, actions: ActionsType<AppState, AppActions>, view: View<AppState, AppActions>, container: Element | null): AppActions;
58
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hyperapp-devtools",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Developer tools for Hyperapp projects",
55
"keywords": ["hyperapp", "devtools", "debug"],
66
"author": "Anthony Ferrando <ferrando.tony@gmail.com>",

src/hoa.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { h, ActionsType, View } from "hyperapp"
1+
import { h, ActionsType } from "hyperapp"
22

33
import { Actions } from "./api"
44
import { state } from "./state"
@@ -16,13 +16,11 @@ export const guid = () =>
1616
.map(rand)
1717
.join("")
1818

19-
// const faScript = document.createElement("script")
20-
// faScript.defer = true
21-
// faScript.src = "https://use.fontawesome.com/releases/v5.0.8/js/all.js"
22-
// faScript.integrity =
23-
// "sha384-SlE991lGASHoBfWbelyBPLsUlwY1GwNDJo3jSJO04KZ33K2bwfV9YBauFfnzvynJ"
24-
// faScript.crossOrigin = "anonymous"
25-
// document.head.appendChild(faScript)
19+
// rewrite the view more permissive than HA to allow for multiple VNode implementation
20+
// e.g. the one in HA 1.1.2 and the on in HA 1.2.5
21+
export interface View<AppState = any, AppActions = any> {
22+
(state: AppState, actions: AppActions): any
23+
}
2624

2725
export interface App<AppState = any, AppActions = any> {
2826
(

0 commit comments

Comments
 (0)