Skip to content

Commit 9045352

Browse files
committed
Update webidl2.js
1 parent f03c08d commit 9045352

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/webidl2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import { CallbackInterface } from "./productions/callback-interface.js";
1212
import { autoParenter } from "./productions/helpers.js";
1313
import { Eof } from "./productions/token.js";
1414

15+
/** @import { Base } from "./productions/base.js" */
16+
1517
/** @typedef {'callbackInterface'|'dictionary'|'interface'|'mixin'|'namespace'} ExtendableInterfaces */
1618
/** @typedef {{ extMembers?: import("./productions/container.js").AllowedMember[]}} Extension */
1719
/** @typedef {Partial<Record<ExtendableInterfaces, Extension>>} Extensions */
@@ -21,7 +23,7 @@ import { Eof } from "./productions/token.js";
2123
* @typedef {Object} ParserOptions
2224
* @property {string} [sourceName]
2325
* @property {boolean} [concrete]
24-
* @property {Function[]} [productions]
26+
* @property {((tokeniser: Tokeniser) => Base)[]} [productions]
2527
* @property {Extensions} [extensions]
2628
*/
2729

0 commit comments

Comments
 (0)