core3-utils

@wixc3/typescript on Github

Home > @wixc3/typescript > match

match() function

Finds a node matching the pattern. The pattern is a valid TS statement

It may include:

Signature:

export declare function match(code: ts.Node, pattern: string): ts.Node | undefined;

Parameters

Parameter Type Description
code ts.Node
pattern string

Returns:

ts.Node | undefined