@cloudflare/workers-types 4.20240129.0 → 4.20240208.0
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/2021-11-03/index.d.ts +5 -3
- package/2021-11-03/index.ts +5 -3
- package/2022-01-31/index.d.ts +5 -3
- package/2022-01-31/index.ts +5 -3
- package/2022-03-21/index.d.ts +5 -3
- package/2022-03-21/index.ts +5 -3
- package/2022-08-04/index.d.ts +5 -3
- package/2022-08-04/index.ts +5 -3
- package/2022-10-31/index.d.ts +5 -3
- package/2022-10-31/index.ts +5 -3
- package/2022-11-30/index.d.ts +5 -3
- package/2022-11-30/index.ts +5 -3
- package/2023-03-01/index.d.ts +5 -3
- package/2023-03-01/index.ts +5 -3
- package/2023-07-01/index.d.ts +5 -3
- package/2023-07-01/index.ts +5 -3
- package/experimental/index.d.ts +5 -3
- package/experimental/index.ts +5 -3
- package/index.d.ts +5 -3
- package/index.ts +5 -3
- package/oldest/index.d.ts +5 -3
- package/oldest/index.ts +5 -3
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -3485,12 +3485,14 @@ declare interface D1Meta {
|
|
|
3485
3485
|
changed_db: boolean;
|
|
3486
3486
|
changes: number;
|
|
3487
3487
|
}
|
|
3488
|
-
declare interface
|
|
3489
|
-
results: T[];
|
|
3488
|
+
declare interface D1Response {
|
|
3490
3489
|
success: true;
|
|
3491
3490
|
meta: D1Meta & Record<string, unknown>;
|
|
3492
3491
|
error?: never;
|
|
3493
3492
|
}
|
|
3493
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3494
|
+
results: T[];
|
|
3495
|
+
};
|
|
3494
3496
|
declare interface D1ExecResult {
|
|
3495
3497
|
count: number;
|
|
3496
3498
|
duration: number;
|
|
@@ -3505,7 +3507,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3505
3507
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3506
3508
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3507
3509
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3508
|
-
run
|
|
3510
|
+
run(): Promise<D1Response>;
|
|
3509
3511
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3510
3512
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3511
3513
|
}
|
package/2021-11-03/index.ts
CHANGED
|
@@ -3490,12 +3490,14 @@ export interface D1Meta {
|
|
|
3490
3490
|
changed_db: boolean;
|
|
3491
3491
|
changes: number;
|
|
3492
3492
|
}
|
|
3493
|
-
export interface
|
|
3494
|
-
results: T[];
|
|
3493
|
+
export interface D1Response {
|
|
3495
3494
|
success: true;
|
|
3496
3495
|
meta: D1Meta & Record<string, unknown>;
|
|
3497
3496
|
error?: never;
|
|
3498
3497
|
}
|
|
3498
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3499
|
+
results: T[];
|
|
3500
|
+
};
|
|
3499
3501
|
export interface D1ExecResult {
|
|
3500
3502
|
count: number;
|
|
3501
3503
|
duration: number;
|
|
@@ -3510,7 +3512,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3510
3512
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3511
3513
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3512
3514
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3513
|
-
run
|
|
3515
|
+
run(): Promise<D1Response>;
|
|
3514
3516
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3515
3517
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3516
3518
|
}
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -3471,12 +3471,14 @@ declare interface D1Meta {
|
|
|
3471
3471
|
changed_db: boolean;
|
|
3472
3472
|
changes: number;
|
|
3473
3473
|
}
|
|
3474
|
-
declare interface
|
|
3475
|
-
results: T[];
|
|
3474
|
+
declare interface D1Response {
|
|
3476
3475
|
success: true;
|
|
3477
3476
|
meta: D1Meta & Record<string, unknown>;
|
|
3478
3477
|
error?: never;
|
|
3479
3478
|
}
|
|
3479
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3480
|
+
results: T[];
|
|
3481
|
+
};
|
|
3480
3482
|
declare interface D1ExecResult {
|
|
3481
3483
|
count: number;
|
|
3482
3484
|
duration: number;
|
|
@@ -3491,7 +3493,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3491
3493
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3492
3494
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3493
3495
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3494
|
-
run
|
|
3496
|
+
run(): Promise<D1Response>;
|
|
3495
3497
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3496
3498
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3497
3499
|
}
|
package/2022-01-31/index.ts
CHANGED
|
@@ -3476,12 +3476,14 @@ export interface D1Meta {
|
|
|
3476
3476
|
changed_db: boolean;
|
|
3477
3477
|
changes: number;
|
|
3478
3478
|
}
|
|
3479
|
-
export interface
|
|
3480
|
-
results: T[];
|
|
3479
|
+
export interface D1Response {
|
|
3481
3480
|
success: true;
|
|
3482
3481
|
meta: D1Meta & Record<string, unknown>;
|
|
3483
3482
|
error?: never;
|
|
3484
3483
|
}
|
|
3484
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3485
|
+
results: T[];
|
|
3486
|
+
};
|
|
3485
3487
|
export interface D1ExecResult {
|
|
3486
3488
|
count: number;
|
|
3487
3489
|
duration: number;
|
|
@@ -3496,7 +3498,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3496
3498
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3497
3499
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3498
3500
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3499
|
-
run
|
|
3501
|
+
run(): Promise<D1Response>;
|
|
3500
3502
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3501
3503
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3502
3504
|
}
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -3497,12 +3497,14 @@ declare interface D1Meta {
|
|
|
3497
3497
|
changed_db: boolean;
|
|
3498
3498
|
changes: number;
|
|
3499
3499
|
}
|
|
3500
|
-
declare interface
|
|
3501
|
-
results: T[];
|
|
3500
|
+
declare interface D1Response {
|
|
3502
3501
|
success: true;
|
|
3503
3502
|
meta: D1Meta & Record<string, unknown>;
|
|
3504
3503
|
error?: never;
|
|
3505
3504
|
}
|
|
3505
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3506
|
+
results: T[];
|
|
3507
|
+
};
|
|
3506
3508
|
declare interface D1ExecResult {
|
|
3507
3509
|
count: number;
|
|
3508
3510
|
duration: number;
|
|
@@ -3517,7 +3519,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3517
3519
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3518
3520
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3519
3521
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3520
|
-
run
|
|
3522
|
+
run(): Promise<D1Response>;
|
|
3521
3523
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3522
3524
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3523
3525
|
}
|
package/2022-03-21/index.ts
CHANGED
|
@@ -3502,12 +3502,14 @@ export interface D1Meta {
|
|
|
3502
3502
|
changed_db: boolean;
|
|
3503
3503
|
changes: number;
|
|
3504
3504
|
}
|
|
3505
|
-
export interface
|
|
3506
|
-
results: T[];
|
|
3505
|
+
export interface D1Response {
|
|
3507
3506
|
success: true;
|
|
3508
3507
|
meta: D1Meta & Record<string, unknown>;
|
|
3509
3508
|
error?: never;
|
|
3510
3509
|
}
|
|
3510
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3511
|
+
results: T[];
|
|
3512
|
+
};
|
|
3511
3513
|
export interface D1ExecResult {
|
|
3512
3514
|
count: number;
|
|
3513
3515
|
duration: number;
|
|
@@ -3522,7 +3524,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3522
3524
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3523
3525
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3524
3526
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3525
|
-
run
|
|
3527
|
+
run(): Promise<D1Response>;
|
|
3526
3528
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3527
3529
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3528
3530
|
}
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -3498,12 +3498,14 @@ declare interface D1Meta {
|
|
|
3498
3498
|
changed_db: boolean;
|
|
3499
3499
|
changes: number;
|
|
3500
3500
|
}
|
|
3501
|
-
declare interface
|
|
3502
|
-
results: T[];
|
|
3501
|
+
declare interface D1Response {
|
|
3503
3502
|
success: true;
|
|
3504
3503
|
meta: D1Meta & Record<string, unknown>;
|
|
3505
3504
|
error?: never;
|
|
3506
3505
|
}
|
|
3506
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3507
|
+
results: T[];
|
|
3508
|
+
};
|
|
3507
3509
|
declare interface D1ExecResult {
|
|
3508
3510
|
count: number;
|
|
3509
3511
|
duration: number;
|
|
@@ -3518,7 +3520,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3518
3520
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3519
3521
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3520
3522
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3521
|
-
run
|
|
3523
|
+
run(): Promise<D1Response>;
|
|
3522
3524
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3523
3525
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3524
3526
|
}
|
package/2022-08-04/index.ts
CHANGED
|
@@ -3503,12 +3503,14 @@ export interface D1Meta {
|
|
|
3503
3503
|
changed_db: boolean;
|
|
3504
3504
|
changes: number;
|
|
3505
3505
|
}
|
|
3506
|
-
export interface
|
|
3507
|
-
results: T[];
|
|
3506
|
+
export interface D1Response {
|
|
3508
3507
|
success: true;
|
|
3509
3508
|
meta: D1Meta & Record<string, unknown>;
|
|
3510
3509
|
error?: never;
|
|
3511
3510
|
}
|
|
3511
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3512
|
+
results: T[];
|
|
3513
|
+
};
|
|
3512
3514
|
export interface D1ExecResult {
|
|
3513
3515
|
count: number;
|
|
3514
3516
|
duration: number;
|
|
@@ -3523,7 +3525,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3523
3525
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3524
3526
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3525
3527
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3526
|
-
run
|
|
3528
|
+
run(): Promise<D1Response>;
|
|
3527
3529
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3528
3530
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3529
3531
|
}
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -3495,12 +3495,14 @@ declare interface D1Meta {
|
|
|
3495
3495
|
changed_db: boolean;
|
|
3496
3496
|
changes: number;
|
|
3497
3497
|
}
|
|
3498
|
-
declare interface
|
|
3499
|
-
results: T[];
|
|
3498
|
+
declare interface D1Response {
|
|
3500
3499
|
success: true;
|
|
3501
3500
|
meta: D1Meta & Record<string, unknown>;
|
|
3502
3501
|
error?: never;
|
|
3503
3502
|
}
|
|
3503
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3504
|
+
results: T[];
|
|
3505
|
+
};
|
|
3504
3506
|
declare interface D1ExecResult {
|
|
3505
3507
|
count: number;
|
|
3506
3508
|
duration: number;
|
|
@@ -3515,7 +3517,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3515
3517
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3516
3518
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3517
3519
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3518
|
-
run
|
|
3520
|
+
run(): Promise<D1Response>;
|
|
3519
3521
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3520
3522
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3521
3523
|
}
|
package/2022-10-31/index.ts
CHANGED
|
@@ -3500,12 +3500,14 @@ export interface D1Meta {
|
|
|
3500
3500
|
changed_db: boolean;
|
|
3501
3501
|
changes: number;
|
|
3502
3502
|
}
|
|
3503
|
-
export interface
|
|
3504
|
-
results: T[];
|
|
3503
|
+
export interface D1Response {
|
|
3505
3504
|
success: true;
|
|
3506
3505
|
meta: D1Meta & Record<string, unknown>;
|
|
3507
3506
|
error?: never;
|
|
3508
3507
|
}
|
|
3508
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3509
|
+
results: T[];
|
|
3510
|
+
};
|
|
3509
3511
|
export interface D1ExecResult {
|
|
3510
3512
|
count: number;
|
|
3511
3513
|
duration: number;
|
|
@@ -3520,7 +3522,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3520
3522
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3521
3523
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3522
3524
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3523
|
-
run
|
|
3525
|
+
run(): Promise<D1Response>;
|
|
3524
3526
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3525
3527
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3526
3528
|
}
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -3498,12 +3498,14 @@ declare interface D1Meta {
|
|
|
3498
3498
|
changed_db: boolean;
|
|
3499
3499
|
changes: number;
|
|
3500
3500
|
}
|
|
3501
|
-
declare interface
|
|
3502
|
-
results: T[];
|
|
3501
|
+
declare interface D1Response {
|
|
3503
3502
|
success: true;
|
|
3504
3503
|
meta: D1Meta & Record<string, unknown>;
|
|
3505
3504
|
error?: never;
|
|
3506
3505
|
}
|
|
3506
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3507
|
+
results: T[];
|
|
3508
|
+
};
|
|
3507
3509
|
declare interface D1ExecResult {
|
|
3508
3510
|
count: number;
|
|
3509
3511
|
duration: number;
|
|
@@ -3518,7 +3520,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3518
3520
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3519
3521
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3520
3522
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3521
|
-
run
|
|
3523
|
+
run(): Promise<D1Response>;
|
|
3522
3524
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3523
3525
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3524
3526
|
}
|
package/2022-11-30/index.ts
CHANGED
|
@@ -3503,12 +3503,14 @@ export interface D1Meta {
|
|
|
3503
3503
|
changed_db: boolean;
|
|
3504
3504
|
changes: number;
|
|
3505
3505
|
}
|
|
3506
|
-
export interface
|
|
3507
|
-
results: T[];
|
|
3506
|
+
export interface D1Response {
|
|
3508
3507
|
success: true;
|
|
3509
3508
|
meta: D1Meta & Record<string, unknown>;
|
|
3510
3509
|
error?: never;
|
|
3511
3510
|
}
|
|
3511
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3512
|
+
results: T[];
|
|
3513
|
+
};
|
|
3512
3514
|
export interface D1ExecResult {
|
|
3513
3515
|
count: number;
|
|
3514
3516
|
duration: number;
|
|
@@ -3523,7 +3525,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3523
3525
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3524
3526
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3525
3527
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3526
|
-
run
|
|
3528
|
+
run(): Promise<D1Response>;
|
|
3527
3529
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3528
3530
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3529
3531
|
}
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -3499,12 +3499,14 @@ declare interface D1Meta {
|
|
|
3499
3499
|
changed_db: boolean;
|
|
3500
3500
|
changes: number;
|
|
3501
3501
|
}
|
|
3502
|
-
declare interface
|
|
3503
|
-
results: T[];
|
|
3502
|
+
declare interface D1Response {
|
|
3504
3503
|
success: true;
|
|
3505
3504
|
meta: D1Meta & Record<string, unknown>;
|
|
3506
3505
|
error?: never;
|
|
3507
3506
|
}
|
|
3507
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3508
|
+
results: T[];
|
|
3509
|
+
};
|
|
3508
3510
|
declare interface D1ExecResult {
|
|
3509
3511
|
count: number;
|
|
3510
3512
|
duration: number;
|
|
@@ -3519,7 +3521,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3519
3521
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3520
3522
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3521
3523
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3522
|
-
run
|
|
3524
|
+
run(): Promise<D1Response>;
|
|
3523
3525
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3524
3526
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3525
3527
|
}
|
package/2023-03-01/index.ts
CHANGED
|
@@ -3504,12 +3504,14 @@ export interface D1Meta {
|
|
|
3504
3504
|
changed_db: boolean;
|
|
3505
3505
|
changes: number;
|
|
3506
3506
|
}
|
|
3507
|
-
export interface
|
|
3508
|
-
results: T[];
|
|
3507
|
+
export interface D1Response {
|
|
3509
3508
|
success: true;
|
|
3510
3509
|
meta: D1Meta & Record<string, unknown>;
|
|
3511
3510
|
error?: never;
|
|
3512
3511
|
}
|
|
3512
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3513
|
+
results: T[];
|
|
3514
|
+
};
|
|
3513
3515
|
export interface D1ExecResult {
|
|
3514
3516
|
count: number;
|
|
3515
3517
|
duration: number;
|
|
@@ -3524,7 +3526,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3524
3526
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3525
3527
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3526
3528
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3527
|
-
run
|
|
3529
|
+
run(): Promise<D1Response>;
|
|
3528
3530
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3529
3531
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3530
3532
|
}
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -3499,12 +3499,14 @@ declare interface D1Meta {
|
|
|
3499
3499
|
changed_db: boolean;
|
|
3500
3500
|
changes: number;
|
|
3501
3501
|
}
|
|
3502
|
-
declare interface
|
|
3503
|
-
results: T[];
|
|
3502
|
+
declare interface D1Response {
|
|
3504
3503
|
success: true;
|
|
3505
3504
|
meta: D1Meta & Record<string, unknown>;
|
|
3506
3505
|
error?: never;
|
|
3507
3506
|
}
|
|
3507
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3508
|
+
results: T[];
|
|
3509
|
+
};
|
|
3508
3510
|
declare interface D1ExecResult {
|
|
3509
3511
|
count: number;
|
|
3510
3512
|
duration: number;
|
|
@@ -3519,7 +3521,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3519
3521
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3520
3522
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3521
3523
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3522
|
-
run
|
|
3524
|
+
run(): Promise<D1Response>;
|
|
3523
3525
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3524
3526
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3525
3527
|
}
|
package/2023-07-01/index.ts
CHANGED
|
@@ -3504,12 +3504,14 @@ export interface D1Meta {
|
|
|
3504
3504
|
changed_db: boolean;
|
|
3505
3505
|
changes: number;
|
|
3506
3506
|
}
|
|
3507
|
-
export interface
|
|
3508
|
-
results: T[];
|
|
3507
|
+
export interface D1Response {
|
|
3509
3508
|
success: true;
|
|
3510
3509
|
meta: D1Meta & Record<string, unknown>;
|
|
3511
3510
|
error?: never;
|
|
3512
3511
|
}
|
|
3512
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3513
|
+
results: T[];
|
|
3514
|
+
};
|
|
3513
3515
|
export interface D1ExecResult {
|
|
3514
3516
|
count: number;
|
|
3515
3517
|
duration: number;
|
|
@@ -3524,7 +3526,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3524
3526
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3525
3527
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3526
3528
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3527
|
-
run
|
|
3529
|
+
run(): Promise<D1Response>;
|
|
3528
3530
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3529
3531
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3530
3532
|
}
|
package/experimental/index.d.ts
CHANGED
|
@@ -3556,12 +3556,14 @@ declare interface D1Meta {
|
|
|
3556
3556
|
changed_db: boolean;
|
|
3557
3557
|
changes: number;
|
|
3558
3558
|
}
|
|
3559
|
-
declare interface
|
|
3560
|
-
results: T[];
|
|
3559
|
+
declare interface D1Response {
|
|
3561
3560
|
success: true;
|
|
3562
3561
|
meta: D1Meta & Record<string, unknown>;
|
|
3563
3562
|
error?: never;
|
|
3564
3563
|
}
|
|
3564
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3565
|
+
results: T[];
|
|
3566
|
+
};
|
|
3565
3567
|
declare interface D1ExecResult {
|
|
3566
3568
|
count: number;
|
|
3567
3569
|
duration: number;
|
|
@@ -3576,7 +3578,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3576
3578
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3577
3579
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3578
3580
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3579
|
-
run
|
|
3581
|
+
run(): Promise<D1Response>;
|
|
3580
3582
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3581
3583
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3582
3584
|
}
|
package/experimental/index.ts
CHANGED
|
@@ -3561,12 +3561,14 @@ export interface D1Meta {
|
|
|
3561
3561
|
changed_db: boolean;
|
|
3562
3562
|
changes: number;
|
|
3563
3563
|
}
|
|
3564
|
-
export interface
|
|
3565
|
-
results: T[];
|
|
3564
|
+
export interface D1Response {
|
|
3566
3565
|
success: true;
|
|
3567
3566
|
meta: D1Meta & Record<string, unknown>;
|
|
3568
3567
|
error?: never;
|
|
3569
3568
|
}
|
|
3569
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3570
|
+
results: T[];
|
|
3571
|
+
};
|
|
3570
3572
|
export interface D1ExecResult {
|
|
3571
3573
|
count: number;
|
|
3572
3574
|
duration: number;
|
|
@@ -3581,7 +3583,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3581
3583
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3582
3584
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3583
3585
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3584
|
-
run
|
|
3586
|
+
run(): Promise<D1Response>;
|
|
3585
3587
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3586
3588
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3587
3589
|
}
|
package/index.d.ts
CHANGED
|
@@ -3485,12 +3485,14 @@ declare interface D1Meta {
|
|
|
3485
3485
|
changed_db: boolean;
|
|
3486
3486
|
changes: number;
|
|
3487
3487
|
}
|
|
3488
|
-
declare interface
|
|
3489
|
-
results: T[];
|
|
3488
|
+
declare interface D1Response {
|
|
3490
3489
|
success: true;
|
|
3491
3490
|
meta: D1Meta & Record<string, unknown>;
|
|
3492
3491
|
error?: never;
|
|
3493
3492
|
}
|
|
3493
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3494
|
+
results: T[];
|
|
3495
|
+
};
|
|
3494
3496
|
declare interface D1ExecResult {
|
|
3495
3497
|
count: number;
|
|
3496
3498
|
duration: number;
|
|
@@ -3505,7 +3507,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3505
3507
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3506
3508
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3507
3509
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3508
|
-
run
|
|
3510
|
+
run(): Promise<D1Response>;
|
|
3509
3511
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3510
3512
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3511
3513
|
}
|
package/index.ts
CHANGED
|
@@ -3490,12 +3490,14 @@ export interface D1Meta {
|
|
|
3490
3490
|
changed_db: boolean;
|
|
3491
3491
|
changes: number;
|
|
3492
3492
|
}
|
|
3493
|
-
export interface
|
|
3494
|
-
results: T[];
|
|
3493
|
+
export interface D1Response {
|
|
3495
3494
|
success: true;
|
|
3496
3495
|
meta: D1Meta & Record<string, unknown>;
|
|
3497
3496
|
error?: never;
|
|
3498
3497
|
}
|
|
3498
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3499
|
+
results: T[];
|
|
3500
|
+
};
|
|
3499
3501
|
export interface D1ExecResult {
|
|
3500
3502
|
count: number;
|
|
3501
3503
|
duration: number;
|
|
@@ -3510,7 +3512,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3510
3512
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3511
3513
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3512
3514
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3513
|
-
run
|
|
3515
|
+
run(): Promise<D1Response>;
|
|
3514
3516
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3515
3517
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3516
3518
|
}
|
package/oldest/index.d.ts
CHANGED
|
@@ -3485,12 +3485,14 @@ declare interface D1Meta {
|
|
|
3485
3485
|
changed_db: boolean;
|
|
3486
3486
|
changes: number;
|
|
3487
3487
|
}
|
|
3488
|
-
declare interface
|
|
3489
|
-
results: T[];
|
|
3488
|
+
declare interface D1Response {
|
|
3490
3489
|
success: true;
|
|
3491
3490
|
meta: D1Meta & Record<string, unknown>;
|
|
3492
3491
|
error?: never;
|
|
3493
3492
|
}
|
|
3493
|
+
declare type D1Result<T = unknown> = D1Response & {
|
|
3494
|
+
results: T[];
|
|
3495
|
+
};
|
|
3494
3496
|
declare interface D1ExecResult {
|
|
3495
3497
|
count: number;
|
|
3496
3498
|
duration: number;
|
|
@@ -3505,7 +3507,7 @@ declare abstract class D1PreparedStatement {
|
|
|
3505
3507
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3506
3508
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3507
3509
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3508
|
-
run
|
|
3510
|
+
run(): Promise<D1Response>;
|
|
3509
3511
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3510
3512
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3511
3513
|
}
|
package/oldest/index.ts
CHANGED
|
@@ -3490,12 +3490,14 @@ export interface D1Meta {
|
|
|
3490
3490
|
changed_db: boolean;
|
|
3491
3491
|
changes: number;
|
|
3492
3492
|
}
|
|
3493
|
-
export interface
|
|
3494
|
-
results: T[];
|
|
3493
|
+
export interface D1Response {
|
|
3495
3494
|
success: true;
|
|
3496
3495
|
meta: D1Meta & Record<string, unknown>;
|
|
3497
3496
|
error?: never;
|
|
3498
3497
|
}
|
|
3498
|
+
export type D1Result<T = unknown> = D1Response & {
|
|
3499
|
+
results: T[];
|
|
3500
|
+
};
|
|
3499
3501
|
export interface D1ExecResult {
|
|
3500
3502
|
count: number;
|
|
3501
3503
|
duration: number;
|
|
@@ -3510,7 +3512,7 @@ export declare abstract class D1PreparedStatement {
|
|
|
3510
3512
|
bind(...values: unknown[]): D1PreparedStatement;
|
|
3511
3513
|
first<T = unknown>(colName: string): Promise<T | null>;
|
|
3512
3514
|
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
3513
|
-
run
|
|
3515
|
+
run(): Promise<D1Response>;
|
|
3514
3516
|
all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
|
|
3515
3517
|
raw<T = unknown[]>(): Promise<T[]>;
|
|
3516
3518
|
}
|
package/package.json
CHANGED