@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.
- package/gui/rendertree.d.ts +1 -1
- package/modules/fs.d.ts +4 -0
- package/package.json +1 -1
package/gui/rendertree.d.ts
CHANGED
|
@@ -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
|