fix(typescript): tighten TypeScript typings and modernize project tooling configuration
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { expect, tap } from '@push.rocks/tapbundle';
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as smartpromise from '../ts/index.js';
|
||||
|
||||
tap.test('should return a Deferred for .defer()', async () => {
|
||||
@@ -17,7 +17,7 @@ tap.test('should let types flow through the Promise', async () => {
|
||||
|
||||
tap.test('should map callbacks', async () => {
|
||||
const inputArray = ['hi', 'awesome'];
|
||||
const myPromisified = async (myInput) => {
|
||||
const myPromisified = async (myInput: string) => {
|
||||
return myInput;
|
||||
};
|
||||
const result = await smartpromise.map(inputArray, myPromisified);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as smartpromise from '../ts/index.js';
|
||||
import { tap, expect } from '@push.rocks/tapbundle';
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
|
||||
tap.test('simple deferred should resolve with correct value', async () => {
|
||||
const done = smartpromise.defer<string>();
|
||||
|
||||
Reference in New Issue
Block a user