@solidrt/flux-types 0.0.30 → 0.0.33

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.
@@ -7,7 +7,7 @@
7
7
  declare module "flux:rendertree" {
8
8
  /** Font options for {@link measureText}. */
9
9
  export interface MeasureTextOptions {
10
- fontFamily?: "sans" | "mono" | (string & {})
10
+ fontFamily?: "sans" | "serif" | "mono" | (string & {})
11
11
  fontSize?: number
12
12
  fontStyle?: "normal" | "italic"
13
13
  fontWeight?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
package/modules/fs.d.ts CHANGED
@@ -52,6 +52,10 @@ declare module "flux:fs" {
52
52
  /**
53
53
  * Reference a file by path. Lazy: no I/O happens until a method is called.
54
54
  *
55
+ * Relative paths resolve against the process cwd. Exception: in a SolidRT
56
+ * app running an installed version, paths under `assets/` resolve read-only
57
+ * into that version's immutable assets tree (writes there error).
58
+ *
55
59
  * @param path Path to the file.
56
60
  */
57
61
  export function file(path: string): FluxFile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/flux-types",
3
- "version": "0.0.30",
3
+ "version": "0.0.33",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "types": "index.d.ts",