ziex 0.0.1-dev.7 → 0.1.0-dev.1000

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.
@@ -0,0 +1,2 @@
1
+ export { createMemoryKV, createKVImports } from "../kv";
2
+ export type { KVNamespace } from "../kv";
@@ -0,0 +1,3 @@
1
+ export { run, buildWsImports, attachWebSocket } from "../runtime";
2
+ export type { DurableObjectNamespace, WsState } from "../runtime";
3
+ export { createWebSocketDO } from "./do";
package/db.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ export type D1Value = null | string | number | boolean | ArrayBuffer | ArrayBufferView;
2
+ export interface D1ExecResult {
3
+ meta?: {
4
+ changes?: number;
5
+ last_row_id?: number;
6
+ };
7
+ }
8
+ export interface D1PreparedStatement {
9
+ bind(...values: D1Value[]): D1PreparedStatement;
10
+ first<T = Record<string, unknown>>(): Promise<T | null>;
11
+ all<T = Record<string, unknown>>(): Promise<{
12
+ results?: T[];
13
+ }>;
14
+ raw(options?: {
15
+ columnNames?: boolean;
16
+ }): Promise<unknown[][]>;
17
+ run(): Promise<D1ExecResult>;
18
+ }
19
+ export interface D1Database {
20
+ prepare(query: string): D1PreparedStatement;
21
+ }
22
+ export declare function createD1Imports(bindings: Record<string, D1Database>, getMemory: () => WebAssembly.Memory): Record<string, unknown>;
package/index.d.ts CHANGED
@@ -1,9 +1,2 @@
1
- export declare const zx: BuildZon;
2
- type BuildZon = {
3
- version: string;
4
- description: string;
5
- repository: string;
6
- fingerprint: number;
7
- minimum_zig_version: string;
8
- };
9
- export {};
1
+ export { Ziex } from "./app";
2
+ export type { WasmInput } from "./app";