Skip to content

Commit 5f3af3b

Browse files
committed
docs: mark args as any
This is also due to microsoft/TypeScript#4628 which prevents changing the signature of static methods on inherited classes.
1 parent 4bbf1f3 commit 5f3af3b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/productions/container.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export class Container extends Base {
3333
/**
3434
* @param {import("../tokeniser.js").Tokeniser} tokeniser
3535
* @param {*} instance TODO: This should be {T extends Container}, but see https://github.com/microsoft/TypeScript/issues/4628
36-
* @param {object} args
37-
* @param {boolean} args.inheritable
38-
* @param {AllowedMember[]} args.allowedMembers
36+
* @param {*} args
3937
*/
4038
static parse(tokeniser, instance, { inheritable, allowedMembers }) {
4139
const { tokens, type } = instance;

0 commit comments

Comments
 (0)