create-vite-hyperapp 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-vite-hyperapp",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "description": "\"Scaffold a project quickly with Hyperapp and Vite\"",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -1,4 +1,4 @@
1
- import type { Action } from "hyperapp"
1
+ import { type Action } from "hyperapp"
2
2
 
3
3
  type CounterProps = {
4
4
  clicks: number
@@ -2,7 +2,7 @@ import "./style.css"
2
2
  import typescriptLogo from "./typescript.svg"
3
3
  import hyperappLogo from "./hyperapp.svg"
4
4
  import viteLogo from "/vite.svg"
5
- import type { Action } from "hyperapp"
5
+ import { type Action, type VNode } from "hyperapp"
6
6
  import Counter from "./counter"
7
7
 
8
8
  type State = { counter: number }
@@ -30,13 +30,14 @@ const Logos = () => (
30
30
  </>
31
31
  )
32
32
 
33
- export const view = (state: State) => (
34
- <main id="app">
35
- <h1>Vite + Hyperapp + TypeScript</h1>
36
- <Logos />
37
- <Counter clicks={state.counter} onclick={HandleClick} />
38
- <p class="read-the-docs">
39
- Click on the Vite, Hyperapp & TypeScript logos to learn more
40
- </p>
41
- </main>
42
- )
33
+ export const view = (state: State) =>
34
+ (
35
+ <main id="app">
36
+ <h1>Vite + Hyperapp + TypeScript</h1>
37
+ <Logos />
38
+ <Counter clicks={state.counter} onclick={HandleClick} />
39
+ <p class="read-the-docs">
40
+ Click on the Vite, Hyperapp & TypeScript logos to learn more
41
+ </p>
42
+ </main>
43
+ ) as VNode<State>
@@ -1,4 +1,4 @@
1
- import type { Action } from "hyperapp"
1
+ import { type Action } from "hyperapp"
2
2
 
3
3
  type CounterProps = {
4
4
  clicks: number
@@ -2,7 +2,7 @@ import "./style.css"
2
2
  import typescriptLogo from "./typescript.svg"
3
3
  import hyperappLogo from "./hyperapp.svg"
4
4
  import viteLogo from "/vite.svg"
5
- import type { Action } from "hyperapp"
5
+ import { type Action, type VNode } from "hyperapp"
6
6
  import Counter from "./counter"
7
7
 
8
8
  type State = { counter: number }
@@ -30,13 +30,14 @@ const Logos = () => (
30
30
  </>
31
31
  )
32
32
 
33
- export const view = (state: State) => (
34
- <main id="app">
35
- <h1>Vite (SSR) + Hyperapp + TypeScript</h1>
36
- <Logos />
37
- <Counter clicks={state.counter} onclick={HandleClick} />
38
- <p class="read-the-docs">
39
- Click on the Vite, Hyperapp & TypeScript logos to learn more
40
- </p>
41
- </main>
42
- )
33
+ export const view = (state: State) =>
34
+ (
35
+ <main id="app">
36
+ <h1>Vite (SSR) + Hyperapp + TypeScript</h1>
37
+ <Logos />
38
+ <Counter clicks={state.counter} onclick={HandleClick} />
39
+ <p class="read-the-docs">
40
+ Click on the Vite, Hyperapp & TypeScript logos to learn more
41
+ </p>
42
+ </main>
43
+ ) as VNode<State>