UNPKG

@expo/fingerprint

Version:

A library to generate a fingerprint from a React Native project

18 lines (17 loc) 662 B
import arg from 'arg'; /** * Parse the first argument as a project directory. * * @returns valid project directory. */ export declare function getProjectRoot(args: arg.Result<arg.Spec>): string; export declare function getFileArgumentAtIndex(args: arg.Result<arg.Spec>, index: number): string; /** * Parse args and assert unknown options. * * @param schema the `args` schema for parsing the command line arguments. * @param argv extra strings * @returns processed args object. */ export declare function assertArgs(schema: arg.Spec, argv: string[]): arg.Result<arg.Spec>; export declare function requireArg(args: arg.Result<arg.Spec>, name: any): any;