Skip to content

Commit

Permalink
fix: using correct type for context options
Browse files Browse the repository at this point in the history
  • Loading branch information
alemagio committed Oct 20, 2020
1 parent 40af761 commit ffb7c79
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PoolConfig } from 'pg'
import { WithPostGraphileContextOptions } from 'postgraphile'

export interface PoolOptions {
user: string
Expand All @@ -8,14 +9,8 @@ export interface PoolOptions {
port: string
}

export interface ContextOptions {
jwtToken?: string
jwtSecret?: string
pgDefaultRole?: string
}

export interface Options {
poolConfig: PoolConfig
schemas: string[]|string
contextOptions: ContextOptions
contextOptions: WithPostGraphileContextOptions
}

0 comments on commit ffb7c79

Please sign in to comment.