Skip to content

Commit f442824

Browse files
committed
Mark opts as Readonly
1 parent 97696e2 commit f442824

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const DEFAULT_IGNORES = /** @type {const} */ ([
6464
export class TopBun {
6565
/** @type {string} */ #src = ''
6666
/** @type {string} */ #dest = ''
67-
/** @type {CurrentOpts & { ignore: string[] }} */ opts
67+
/** @type {Readonly<CurrentOpts & { ignore: string[] }>} */ opts
6868
/** @type {FSWatcher?} */ #watcher = null
6969
/** @type {any?} */ #cpxWatcher = null
7070
/** @type {browserSync.BrowserSyncInstance?} */ #browserSyncServer = null

lib/builder.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ import { ensureDest } from './helpers/ensure-dest.js'
4040

4141
/**
4242
* @typedef TopBunOpts
43-
* @property {string[]?} [ignore] - Array of file/folder patterns to ignore.
44-
* @property {boolean?} [static=true] - Enable/disable static file processing
45-
* @property {boolean?} [metafile=true] - Enable/disable the writing of the esbuild metadata file.
46-
* @property {string[]?} [ignore=[]] - Array of ignore strings
47-
* @property {string[]?} [target=[]] - Array of target strings to pass to esbuild
48-
* @property {boolean?} [buildDrafts=false] - Build draft files with the published:false variable
43+
* @property {string[]|undefined} [ignore] - Array of file/folder patterns to ignore.
44+
* @property {boolean|undefined} [static=true] - Enable/disable static file processing
45+
* @property {boolean|undefined} [metafile=true] - Enable/disable the writing of the esbuild metadata file.
46+
* @property {string[]|undefined} [ignore=[]] - Array of ignore strings
47+
* @property {string[]|undefined} [target=[]] - Array of target strings to pass to esbuild
48+
* @property {boolean|undefined} [buildDrafts=false] - Build draft files with the published:false variable
4949
*/
5050

5151
/**

0 commit comments

Comments
 (0)