Skip to content

Commit

Permalink
Introduce Context interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Pl217 committed Aug 13, 2021
1 parent 41a7ea7 commit 4bf56f2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Context.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Knex from 'knex';
import { PartialRequest as Request } from './Request';

export interface Config {
authBaseUrl?: string;
basicAuthUser?: string;
logging: {
mode?: string;
color?: boolean;
};
name?: string;
}

export default interface Context {
connection: Knex<any, unknown[]>;
config: Config;
request: Request;
token: string | null;
}

0 comments on commit 4bf56f2

Please sign in to comment.