Skip to content

Commit 4f20636

Browse files
committed
Exporting types
1 parent eb3f414 commit 4f20636

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

index.d.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
declare module "promisesql";
22

3-
type DataObject = Object;
4-
type DataArray = DataObject[];
3+
export type DataObject = Object;
4+
export type DataArray = DataObject[];
55

6-
type QueryRetval = void | DataObject | DataArray;
7-
type QueryPromise = Promise<QueryRetval>;
6+
export type QueryRetval = void | DataObject | DataArray;
7+
export type QueryPromise = Promise<QueryRetval>;
88

9-
interface BaseOptions {
9+
export interface BaseOptions {
1010
file?: string,
1111
table?: string
1212
}
1313

14-
interface RunOptions extends BaseOptions {
14+
export interface RunOptions extends BaseOptions {
1515
statement: string,
1616
args?: any[]
1717
}
1818

19-
interface InsertOptions extends BaseOptions {
19+
export interface InsertOptions extends BaseOptions {
2020
into: string,
2121
columns?: string[],
2222
values: string[]
2323
}
2424

25-
type SelectionRetval = DataObject | DataArray;
26-
type SelectionPromise = Promise<SelectionRetval>;
25+
export type SelectionRetval = DataObject | DataArray;
26+
export type SelectionPromise = Promise<SelectionRetval>;
2727

28-
interface SelectionOptions extends BaseOptions {
28+
export interface SelectionOptions extends BaseOptions {
2929
first?: boolean,
3030
all?: boolean,
3131
columns?: string[],
3232
from: string,
3333
where?: (string | BooleanExpression)[]
3434
}
3535

36-
interface UpdateOptions extends BaseOptions {
36+
export interface UpdateOptions extends BaseOptions {
3737
table: string,
3838
set: (string | BooleanExpression)[],
3939
where?: (string | BooleanExpression)[]
4040
}
4141

42-
interface DeleteOptions extends BaseOptions {
42+
export interface DeleteOptions extends BaseOptions {
4343
from: string,
4444
where?: (string | BooleanExpression)[]
4545
}
4646

47-
interface UpsertOptions extends InsertOptions {
47+
export interface UpsertOptions extends InsertOptions {
4848
set: (string | BooleanExpression)[],
4949
where?: (string | BooleanExpression)[]
5050
}
5151

52-
interface BooleanExpression {
52+
export interface BooleanExpression {
5353
lhs: string,
5454
operator: string,
5555
rhs: string

0 commit comments

Comments
 (0)