@altostra/core
Version:
Core library for shared types and logic
18 lines (17 loc) • 921 B
TypeScript
import type { Path } from "../../../../common/CustomTypes/Path";
import type { Maybe } from "../../../../common/Maybe";
import type { ComputeFunctionType } from "../../../Resources/ComputeFunction";
import type { BlueprintHelper } from "../../BlueprintHelper";
import type { ResourceHelper } from "../../ResourceHelper";
import type { ComputeResourceUtils } from "./common";
export declare function getFunctionUtilities(blueprint: BlueprintHelper, func: ResourceHelper<ComputeFunctionType>): ComputeFunctionUtils;
/**
* Return a file extension if the specified `runtime` supports source-file creation
* (usually scripted languages). \
* Otherwise, returns `undefined`.
* @param runtime A lambda runtime to get extension for
*/
export declare function fileExtensionByRuntime(runtime: string): Maybe<string>;
export interface ComputeFunctionUtils extends ComputeResourceUtils {
getEntryPointPath(): Maybe<Path>;
}