@devwaren/vanilla-ts 1.0.11 → 1.0.12

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/dist/index.cjs CHANGED
@@ -19,6 +19,11 @@ export default function ${_.name}(DOM: HTMLElement) {
19
19
  `),Gt=`// AUTO-GENERATED ROUTER
20
20
  import { useTSElements, useTSParams, html } from "@devwaren/vanilla-ts";
21
21
 
22
+ type Cleanup = undefined | (() => void);
23
+ type RenderResult = Cleanup | Promise<Cleanup> | string;
24
+ type Component = (DOM: HTMLElement) => RenderResult;
25
+ type Module = { default: Component };
26
+
22
27
  // -----------------------------
23
28
  ${p?`export const NotFound = async (DOM: HTMLElement) => {
24
29
  const mod = await import("../pages/${e.relative(s,p.file).replace(/\\/g,"/").replace(/\\.ts$/,"")}") as Module;
package/dist/index.js CHANGED
@@ -19,6 +19,11 @@ export default function ${T.name}(DOM: HTMLElement) {
19
19
  `),Me=`// AUTO-GENERATED ROUTER
20
20
  import { useTSElements, useTSParams, html } from "@devwaren/vanilla-ts";
21
21
 
22
+ type Cleanup = undefined | (() => void);
23
+ type RenderResult = Cleanup | Promise<Cleanup> | string;
24
+ type Component = (DOM: HTMLElement) => RenderResult;
25
+ type Module = { default: Component };
26
+
22
27
  // -----------------------------
23
28
  ${m?`export const NotFound = async (DOM: HTMLElement) => {
24
29
  const mod = await import("../pages/${e.relative(r,m.file).replace(/\\/g,"/").replace(/\\.ts$/,"")}") as Module;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devwaren/vanilla-ts",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Vanilla Framework-less TypeScript hooks for SPA development.",
5
5
  "author": "Waren Arapoc Gador",
6
6
  "license": "MIT",