Skip to content

Commit

Permalink
add jsdoc on private functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Applelo committed Apr 5, 2024
1 parent 3676c9e commit 31ed430
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,27 @@ export class Server {
return configPort || defaultPort
}

/**
* Get user options
* @readonly
*/
private get userOptions(): OptionsPreview | OptionsBuildWatch | OptionsDev | undefined {
return this.options && this.env in this.options
? this.options[this.env]
: {}
}

/**
* Get user browsersync options
* @readonly
*/
private get userBsOptions(): BrowserSyncOptions {
return this.userOptions && this.userOptions.bs ? this.userOptions.bs : {}
}

/**
* Get Final browsersync options
*/
private get bsOptions(): BrowserSyncOptions {
const bsOptions = this.userBsOptions

Expand Down

0 comments on commit 31ed430

Please sign in to comment.