Skip to content

resolveMaybe

@tsed/cli-prompts

Usage

typescript
import { resolveMaybe } from "@tsed/cli-prompts/src/utils/resolveMaybe";

See /packages/cli-prompts/src/utils/resolveMaybe.ts.

Overview

ts
function resolveMaybe<T>(value: T | ((answers: Record<string, any>) => T | Promise<T>) | undefined, answers: Record<string, any>): Promise<T> | T;

Released under the MIT License.