mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
1178686a4c
swc_bundler: - Fix remapping of exports. (denoland/deno#9350)
18 lines
521 B
TypeScript
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' ];
|
|
}
|
|
}
|