@altostra/core
Version:
Core library for shared types and logic
18 lines (17 loc) • 789 B
TypeScript
import type { HttpMethod } from "../aws/CloudFormation/ApiGateway/Method";
export { type HttpMethod, isHttpMethod, } from "../aws/CloudFormation/ApiGateway/Method";
export { ResourceId } from "./Resources/ResourceId";
export { Key, Dict } from "../common/Types";
export declare const realHttpMethods: readonly HttpMethod[];
export declare type NonOptionalValue<T> = T extends infer V | undefined ? V : T;
/**
* Either T or undefined. An optional value.
*/
export declare type Maybe<T> = T | undefined;
/**
* Returns only the truthy values from the provided array.
* @param values An array.
* @returns An array that contains only the truthy values from the provided array.
*/
export declare function validateValues<T>(values: Maybe<T>[]): T[];
export declare type ProjectId = string;