Skip to content

Commit

Permalink
fix tsc errors in packages/server
Browse files Browse the repository at this point in the history
  • Loading branch information
kuceb committed Jan 29, 2020
1 parent 734f344 commit fcfa932
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/server/lib/browsers/chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import utils from './utils'
import protocol from './protocol'
import { CdpAutomation } from './cdp_automation'
import * as CriClient from './cri-client'
import errors from '../errors'
import errors from '../errors.coffee'

// TODO: this is defined in `cypress-npm-api` but there is currently no way to get there
type CypressConfiguration = any
Expand Down
4 changes: 2 additions & 2 deletions packages/server/lib/browsers/firefox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import firefoxUtil from './firefox-util'
import plugins from '../plugins'
import utils from './utils'
import { Browser } from '@packages/launcher'
import errors from '../errors'
import errors from '../errors.coffee'

const debug = Debug('cypress:server:browsers:firefox')

Expand Down Expand Up @@ -136,7 +136,7 @@ const firefoxOptionsDefaults = {

export async function open (browser: Browser, url, options: any = {}) {
let launchOptions = {
extensions: [],
extensions: [] as string[],
preferences: _.extend({}, defaultPreferences),
firefoxOptions: _.extend({}, firefoxOptionsDefaults),
args: [
Expand Down
5 changes: 5 additions & 0 deletions packages/server/lib/ts/import-coffee.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// allows Typescript to import .coffee files
declare module '*.coffee' {
const content: any
export default content
}

1 comment on commit fcfa932

@cypress-bot

This comment was marked as outdated.

Please sign in to comment.