mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
13 lines
391 B
TypeScript
13 lines
391 B
TypeScript
// Loaded from https://deno.land/x/cliffy@v0.12.1/packages/command/types/type.ts
|
|
|
|
|
|
import { IFlagArgument, IFlagOptions } from '../../flags/lib/types.ts';
|
|
import { Command } from '../lib/command.ts';
|
|
|
|
export abstract class Type<T> {
|
|
|
|
public abstract parse( option: IFlagOptions, arg: IFlagArgument, value: string ): T
|
|
|
|
public complete?( cmd: Command, parent?: Command ): string[];
|
|
}
|