Skip to content

Commit

Permalink
fix(types): add more type definitions to nuxt interface (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza authored Apr 1, 2021
1 parent 0228a8e commit 1a7d223
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ export interface NuxtTestContext {

nuxt?: {
options: NuxtOptions
listen: (port?: number) => any
listen: (port?: number, host?: string, socket?: string) => any
ready: () => any
close: () => any
close: (callback?: Function) => any
resolver: any
moduleContainer: any
resolveAlias(path: string): string
resolvePath(path: string, opts?: any): string
renderRoute(...args: any[]): any
renderAndGetWindow(url: string, opts?: any, config?: any): any
}

browser?: Browser
Expand Down

0 comments on commit 1a7d223

Please sign in to comment.