14 lines
385 B
TypeScript
14 lines
385 B
TypeScript
import { AstNode, LongOption, ShortOption } from './parser';
|
|
declare type Option = LongOption | ShortOption;
|
|
/**
|
|
* A utility function to find an option in the AST
|
|
*
|
|
* @param nodes AST node list
|
|
* @param opts Long and short names to look up
|
|
*/
|
|
export declare function findOption(nodes: AstNode[], opts: {
|
|
longNames: string[];
|
|
shortNames: string[];
|
|
}): Option[];
|
|
export {};
|