Skip to content

parseOption

@tsed/cli-core

Usage

typescript
import { parseOption } from "@tsed/cli-core";

See /packages/cli-core/src/utils/parseOption.ts.

Overview

ts
function parseOption(value: any, options: {
    type?: Type<any>;
    itemType?: Type<any>;
    customParser?: any;
}): any;

type

ts
type?: Type<any>;

itemType

ts
itemType?: Type<any>;

customParser

ts
customParser?: any;

Released under the MIT License.