fox-slack-block-builder
Version:
Maintainable code for interactive Slack messages, modals, home tabs, and workflow steps. A must-have for the Slack Block Kit framework.
13 lines (12 loc) • 594 B
TypeScript
import type { Undefinable } from '../internal/types';
export declare function setIfTruthy<T, R>(condition: T, toSet: R): Undefinable<R>;
export declare function omitIfTruthy<T, R>(condition: T, toOmit: R): Undefinable<R>;
export declare function setIfFalsy<T, R>(condition: T, toSet: R): Undefinable<R>;
export declare function omitIfFalsy<T, R>(condition: T, toOmit: R): Undefinable<R>;
declare const conditionals: {
setIfTruthy: typeof setIfTruthy;
omitIfTruthy: typeof omitIfTruthy;
setIfFalsy: typeof setIfFalsy;
omitIfFalsy: typeof omitIfFalsy;
};
export { conditionals };