Skip to content

Commit

Permalink
Import config types rather than using namespaces (#8166)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Mar 29, 2022
1 parent 3841213 commit b82ae64
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/wdio-cli/src/templates/wdio.conf.tpl.ejs
@@ -1,4 +1,11 @@
<% if(!answers.isUsingTypeScript) { %>exports.config = {<% } else { %>export const config: WebdriverIO.Config = {<% } %>
<%
if(!answers.isUsingTypeScript) {
%>exports.config = {<%
} else {
%>import type { Options } from '@wdio/types'
export const config: Options.Testrunner = {<%
} %>
//
// ====================
// Runner Configuration
Expand Down

0 comments on commit b82ae64

Please sign in to comment.