|
26 | 26 | *
|
27 | 27 | * @typedef Options
|
28 | 28 | * Configuration (optional).
|
29 |
| - * @property {Version} [version='latest'] |
| 29 | + * @property {Version | null | undefined} [version='latest'] |
30 | 30 | * JavaScript version (year between 2015 and 2022 or `'latest'`).
|
31 |
| - * @property {boolean} [module=false] |
| 31 | + * @property {boolean | null | undefined} [module=false] |
32 | 32 | * Whether this is a module (ESM) or a script.
|
33 |
| - * @property {boolean} [allowReturnOutsideFunction=false] |
| 33 | + * @property {boolean | null | undefined} [allowReturnOutsideFunction=false] |
34 | 34 | * Whether a return statement is allowed in the top scope.
|
35 |
| - * @property {boolean} [allowImportExportEverywhere=false] |
| 35 | + * @property {boolean | null | undefined} [allowImportExportEverywhere=false] |
36 | 36 | * Whether import/export statements are allowed in the every scope.
|
37 |
| - * @property {boolean} [allowAwaitOutsideFunction] |
| 37 | + * @property {boolean | null | undefined} [allowAwaitOutsideFunction] |
38 | 38 | * Whether `await` is allowed in the top scope.
|
39 | 39 | * Defaults to `version >= 2022`.
|
40 |
| - * @property {boolean} [allowSuperOutsideMethod=false] |
| 40 | + * @property {boolean | null | undefined} [allowSuperOutsideMethod=false] |
41 | 41 | * Whether `super` is allowed outside methods.
|
42 |
| - * @property {boolean} [allowHashBang=false] |
| 42 | + * @property {boolean | null | undefined} [allowHashBang=false] |
43 | 43 | * Whether a shell hasbang is allowed.
|
44 |
| - * @property {Array<Plugin>} [plugins=[]] |
| 44 | + * @property {Array<Plugin> | null | undefined} [plugins=[]] |
45 | 45 | * List of acorn plugins.
|
46 | 46 | */
|
47 | 47 |
|
|
0 commit comments