swc/bundler/tests/.cache/deno/9b6df7316f6b18748c68ebd56025d9c438875ae2.ts
강동윤 1178686a4c
fix(bundler): Fix bundler (#1576)
swc_bundler:
 - Fix remapping of exports. (denoland/deno#9350)
2021-04-16 18:09:38 +00:00

18 lines
521 B
TypeScript

// Loaded from https://deno.land/x/cliffy@v0.12.1/packages/command/types/boolean.ts
import { IFlagArgument, IFlagOptions } from '../../flags/lib/types.ts';
import { boolean } from '../../flags/lib/types/boolean.ts';
import { Type } from './type.ts';
export class BooleanType extends Type<boolean> {
public parse( option: IFlagOptions, arg: IFlagArgument, value: string ): boolean {
return boolean( option, arg, value );
}
public complete(): string[] {
return [ 'true', 'false' ];
}
}