Skip to content

Commit

Permalink
fix: export public types & interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 3, 2019
1 parent 5d98712 commit 73cb22c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adonis-typings/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ declare module '@ioc:Adonis/Lucid/Database' {
/**
* A executable query builder will always have these methods on it.
*/
interface ExcutableQueryBuilderContract<Result extends any> extends Promise<Result> {
export interface ExcutableQueryBuilderContract<Result extends any> extends Promise<Result> {
debug (debug: boolean): this
timeout (time: number, options?: { cancel: boolean }): this
useTransaction (trx: TransactionClientContract): this
Expand All @@ -41,7 +41,7 @@ declare module '@ioc:Adonis/Lucid/Database' {
* Shape of the query client, that is used to retrive instances
* of query builder
*/
interface QueryClientContract {
export interface QueryClientContract {
/**
* Custom profiler to time queries
*/
Expand Down Expand Up @@ -136,7 +136,7 @@ declare module '@ioc:Adonis/Lucid/Database' {
* The shape of transaction client to run queries under a given
* transaction on a single connection
*/
interface TransactionClientContract extends QueryClientContract {
export interface TransactionClientContract extends QueryClientContract {
knexClient: knex.Transaction,

/**
Expand Down Expand Up @@ -516,7 +516,7 @@ declare module '@ioc:Adonis/Lucid/Database' {
* Options when retrieving new query client from the database
* query builder
*/
type DatabaseClientOptions = Partial<{
export type DatabaseClientOptions = Partial<{
mode: 'read' | 'write',
profiler: ProfilerRowContract | ProfilerContract,
}>
Expand Down

0 comments on commit 73cb22c

Please sign in to comment.