0.0.2 • Published 3 years ago

ts-transactions v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

TypeScript Transactions

Introducing ts-transactions, a functional transactions API for TypeScript.

Installation

npm install ts-transactions

Usage

import { tsts } from 'ts-transaction'

Example

tsts.transaction()
    .add(async () => {})
    .add(async () => {})
    .rollback(async () => {})

    .add(async () => {})
    .rollback(async () => {})

    .add(async () => {})
    .add(async () => {})

    .execute()
0.0.2

3 years ago

0.0.1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago