fix(core): update

This commit is contained in:
2023-04-04 20:22:57 +02:00
parent 40642fd6f6
commit 960c23fecd
15 changed files with 4609 additions and 25844 deletions

View File

@@ -1,4 +1,4 @@
import * as smartpromise from '../ts';
import * as smartpromise from '../ts/index.js';
// using Deferreds
// simple deferred;
@@ -6,8 +6,7 @@ const done = smartpromise.defer();
done.promise.then((stringArg) => {
console.log(stringArg);
});
done.resolve('hello') // whenever you are ready
done.resolve('hello'); // whenever you are ready
// using deferreds in async functions to cater callback style apis
const myAsyncFunction = async (): Promise<string> => {
@@ -48,7 +47,7 @@ smartpromise
console.log(err);
});
import {tap, expect } from '@pushrocks/tapbundle';
import { tap, expect } from '@pushrocks/tapbundle';
tap.test('runs through', async () => {})
tap.start();
tap.test('runs through', async () => {});
tap.start();