sarsamurmu / reboost

A super fast dev server for rapid web development
MIT License
61 stars 3 forks source link

"contentServer" mismatch type declaration #21

Closed GHNewbiee closed 4 years ago

GHNewbiee commented 4 years ago

contentServer gives an error, either writing:

contentServer: contentServerConfig,

or

  contentServer: {
    ...contentServerConfig,
    open: {
      app: 'firefox'
    }
  },

See photo below.

Screenshot

sarsamurmu commented 4 years ago

In your content server config file, add type JSDoc comment before module.exports. Your config file should now look like this

/** @type import('reboost').ReboostConfig['contentServer'] */
module.exports = {
  // Your options
}
sarsamurmu commented 4 years ago

It's happening because you are using TypeScript type checking with JavaScript files