Skip to content

Commit 595c2b1

Browse files
committed
Add support for null as input in types
1 parent 2d7e0c8 commit 595c2b1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626
*
2727
* @typedef Options
2828
* Configuration (optional).
29-
* @property {Version} [version='latest']
29+
* @property {Version | null | undefined} [version='latest']
3030
* JavaScript version (year between 2015 and 2022 or `'latest'`).
31-
* @property {boolean} [module=false]
31+
* @property {boolean | null | undefined} [module=false]
3232
* Whether this is a module (ESM) or a script.
33-
* @property {boolean} [allowReturnOutsideFunction=false]
33+
* @property {boolean | null | undefined} [allowReturnOutsideFunction=false]
3434
* Whether a return statement is allowed in the top scope.
35-
* @property {boolean} [allowImportExportEverywhere=false]
35+
* @property {boolean | null | undefined} [allowImportExportEverywhere=false]
3636
* Whether import/export statements are allowed in the every scope.
37-
* @property {boolean} [allowAwaitOutsideFunction]
37+
* @property {boolean | null | undefined} [allowAwaitOutsideFunction]
3838
* Whether `await` is allowed in the top scope.
3939
* Defaults to `version >= 2022`.
40-
* @property {boolean} [allowSuperOutsideMethod=false]
40+
* @property {boolean | null | undefined} [allowSuperOutsideMethod=false]
4141
* Whether `super` is allowed outside methods.
42-
* @property {boolean} [allowHashBang=false]
42+
* @property {boolean | null | undefined} [allowHashBang=false]
4343
* Whether a shell hasbang is allowed.
44-
* @property {Array<Plugin>} [plugins=[]]
44+
* @property {Array<Plugin> | null | undefined} [plugins=[]]
4545
* List of acorn plugins.
4646
*/
4747

0 commit comments

Comments
 (0)