@sigil-dev/types 0.9.26 → 0.9.27

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.
Files changed (2) hide show
  1. package/index.d.ts +4 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -29,7 +29,7 @@ declare function $derived<T>(expression: T): T;
29
29
  /**
30
30
  * Declare a side effect
31
31
  */
32
- declare function $effect(fn: () => undefined | (() => void)): void;
32
+ declare function $effect(fn: () => void | (() => void)): void;
33
33
 
34
34
  declare namespace $effect {
35
35
  /**
@@ -39,7 +39,7 @@ declare namespace $effect {
39
39
  /**
40
40
  * Effect that flushes before DOM update
41
41
  */
42
- export function pre(fn: () => undefined | (() => void)): void;
42
+ export function pre(fn: () => void | (() => void)): void;
43
43
  }
44
44
 
45
45
  /**
@@ -53,6 +53,8 @@ type SigilDirective = (element: any, ...args: any[]) => unknown;
53
53
  interface SigilBaseProps {
54
54
  class?: string;
55
55
  style?: React.CSSProperties | string;
56
+ /** Raw HTML for the element's content, set as `el.innerHTML`. Never pass untrusted input. */
57
+ innerHTML?: string;
56
58
  /** Anything renderable: nodes, text, numbers, arrays, nothing. */
57
59
  children?: unknown;
58
60
  /** Identifies an item in a list, so it is moved rather than rebuilt. */
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "git+https://git.cane1712.dev/sigil/sigil.git",
9
9
  "directory": "packages/types"
10
10
  },
11
- "version": "0.9.26",
11
+ "version": "0.9.27",
12
12
  "type": "module",
13
13
  "exports": {
14
14
  ".": "./index.d.ts"