Skip to content

Make postConditionFromMode public #1772

Open
@aryzing

Description

@aryzing

Problem

@stacksjs/transactions makes both post condition mode types available as exports:

export type PostConditionModeName = 'allow' | 'deny';

export enum PostConditionMode {

but not the helper to that unifies into a single type,

export function postConditionModeFrom(

which makes it hard for clients to likewise allow for both types, and treat them in a stable manenr

Solution

Make postConditionModeFrom available for import for clients.

Additional context

Let me know if there's a better or preferred way of handling these two types, or if one will be soon deprecated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureBrand new functionality. New pages, workflows, endpoints, etc.

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions