UNPKG

@smithy/types

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)

56 lines (55 loc) 979 B
import { Logger } from "../logger"; /** * @public */ export type ReferenceObject = { ref: string; }; /** * @public */ export type FunctionObject = { fn: string; argv: FunctionArgv; }; /** * @public */ export type FunctionArgv = Array<Expression | boolean | number>; /** * @public */ export type FunctionReturn = string | boolean | number | { [key: string]: FunctionReturn; }; /** * @public */ export type ConditionObject = FunctionObject & { assign?: string; }; /** * @public */ export type Expression = string | ReferenceObject | FunctionObject; /** * @public */ export type EndpointParams = Record<string, string | boolean>; /** * @public */ export type EndpointResolverOptions = { endpointParams: EndpointParams; logger?: Logger; }; /** * @public */ export type ReferenceRecord = Record<string, FunctionReturn>; /** * @public */ export type EvaluateOptions = EndpointResolverOptions & { referenceRecord: ReferenceRecord; };