PHP 7.4.33
Preview: index.d.ts Size: 764 B
/var/www/receipt-app-backend-bitkit.dk/httpdocs/node_modules/arg/index.d.ts
declare const flagSymbol: unique symbol;

declare function arg<T extends arg.Spec>(spec: T, options?: arg.Options): arg.Result<T>;

declare namespace arg {
	export function flag<T>(fn: T): T & { [flagSymbol]: true };

	export const COUNT: Handler<number> & { [flagSymbol]: true };

	export type Handler <T = any> = (value: string, name: string, previousValue?: T) => T;

	export interface Spec {
		[key: string]: string | Handler | [Handler];
	}

	export type Result<T extends Spec> = { _: string[] } & {
		[K in keyof T]?: T[K] extends Handler
			? ReturnType<T[K]>
			: T[K] extends [Handler]
			? Array<ReturnType<T[K][0]>>
			: never
	};

	export interface Options {
		argv?: string[];
		permissive?: boolean;
		stopAtPositional?: boolean;
	}
}

export = arg;

Directory Contents

Dirs: 0 × Files: 5
Name Size Perms Modified Actions
764 B lrw-r--r-- 2026-05-06 08:23:45
Edit Download
3.80 KB lrw-r--r-- 2026-05-06 08:23:45
Edit Download
1.05 KB lrw-r--r-- 2026-05-06 08:23:45
Edit Download
567 B lrw-r--r-- 2026-05-06 08:23:45
Edit Download
6.45 KB lrw-r--r-- 2026-05-06 08:23:45
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).