Skip to content

TypeScript definition for clearFlags and setFlags don't allow bitwise operations. #347

Open

Description

You can use bitwise operation to turn on multiple flags in the same transaction, however, TypeScript complains that the value isn't valid, since it's expecting the value to be either 1,2, or 4.

Operation.setOptions({
    setFlags: AuthRequiredFlag | AuthRevocableFlag
})

It's very likely other fields with bitwise support have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions