baldrick-broth
Version:
Build automation tool and task runner
18 lines (17 loc) • 899 B
TypeScript
import { type AnyDataValue, type Ctx } from './build-model.js';
export declare const createDataId: (memoryId: string, key: string) => string;
export declare const setDataValue: (memoryId: string, ctx: Ctx, key: string, value: AnyDataValue | undefined) => void;
export declare const withMemoryPrefix: (memoryId: string) => (key: string) => boolean;
export declare const splitDataKey: (dataKey: string) => [string, string];
/**
* Return the current value or otherwise fallback to root value
*/
export declare const getSupportedProperty: (memoryId: string, ctx: Ctx, valuePath: string) => AnyDataValue | undefined;
/**
* Check if the the value would generally considered false or empty
*/
export declare const isFalsy: (value: unknown) => boolean;
/**
* Check if the the value would generally considered like having a value or true
*/
export declare const isTruthy: (value: unknown) => boolean;