mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
|
// Loaded from https://deno.land/x/cliffy@v0.18.0/command/types/string.ts
|
||
|
|
||
|
|
||
|
import { string } from "../../flags/types/string.ts";
|
||
|
import { Type } from "../type.ts";
|
||
|
import type { ITypeInfo } from "../types.ts";
|
||
|
|
||
|
/** String type. Allows any value. */
|
||
|
export class StringType extends Type<string> {
|
||
|
/** Complete string type. */
|
||
|
public parse(type: ITypeInfo): string {
|
||
|
return string(type);
|
||
|
}
|
||
|
}
|