Commit 29071f1 1 parent d5e0dcd commit 29071f1 Copy full SHA for 29071f1
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import { color as colorDefault } from '#conditional-color'
8
8
9
- /** @type {Options } */
9
+ /** @type {Readonly< Options> } */
10
10
const emptyOptions = { }
11
11
12
12
// To do: next major (?): use `Object.hasOwn`.
@@ -17,7 +17,7 @@ const own = {}.hasOwnProperty
17
17
*
18
18
* @param {unknown } tree
19
19
* Tree to inspect.
20
- * @param {Options | null | undefined } [options]
20
+ * @param {Readonly< Options> | null | undefined } [options]
21
21
* Configuration.
22
22
* @returns {string }
23
23
* Pretty printed `tree`.
@@ -48,7 +48,7 @@ export function inspect(tree, options) {
48
48
* Use `inspect` instead, with `color: false`.
49
49
* @param {unknown } tree
50
50
* Tree to inspect.
51
- * @param {Omit<Options, 'color'> | null | undefined } [options]
51
+ * @param {Readonly< Omit<Options, 'color'> > | null | undefined } [options]
52
52
* Configuration.
53
53
* @returns {string }
54
54
* Pretty printed `tree`.
@@ -65,7 +65,7 @@ export function inspectNoColor(tree, options) {
65
65
* Use `inspect` instead, with `color: true`.
66
66
* @param {unknown } tree
67
67
* Tree to inspect.
68
- * @param {Omit<Options, 'color'> | null | undefined } [options]
68
+ * @param {Readonly< Omit<Options, 'color'> > | null | undefined } [options]
69
69
* Configuration (optional).
70
70
* @returns {string }
71
71
* Pretty printed `tree`.
You can’t perform that action at this time.
0 commit comments