Skip to content

Commit

Permalink
add arg to type
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Oct 27, 2020
1 parent ae7c3f4 commit fbbb7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/type/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ function getAllNodes<T extends ASTNode, K extends ASTNode>(

function getAllSubNodes<T extends ASTNode, K extends ASTNode, L extends ASTNode>(
object: SDLDefinedObject<T, K>,
getter: (T | K) => Maybe<(L | ReadonlyArray<L>)>,
getter: (_arg: T | K) => Maybe<(L | ReadonlyArray<L>)>,

This comment has been minimized.

Copy link
@IvanGoncharov

IvanGoncharov Oct 27, 2020

@saihaj Change it to _

): ReadonlyArray<L> {
let subNodes = [];
for (const node of getAllNodes(object)) {
Expand Down

0 comments on commit fbbb7a5

Please sign in to comment.