@solidrt/flux-types 0.0.4 → 0.0.5

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 +6 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -25,11 +25,17 @@ declare global {
25
25
  stat(): Promise<FluxFileStat>
26
26
  }
27
27
 
28
+ type FluxServeOptions = {
29
+ port: number
30
+ fetch?: (req: Request) => Response | string | Promise<Response | string>
31
+ }
32
+
28
33
  let Flux: {
29
34
  on(event: string, callback: (data: any) => void): () => void
30
35
  dir(path: string): FluxDir
31
36
  file(path: string): FluxFile
32
37
  write(path: string, data: string | Uint8Array): Promise<void>
38
+ serve(options: FluxServeOptions): void
33
39
  }
34
40
  }
35
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/flux-types",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "types": "index.d.ts",