mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
p-lazy: Fix test (#21280)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import PLazy = require('p-lazy');
|
||||
|
||||
const lazyPromise = new PLazy<string>((resolve, reject) => {
|
||||
if (typeof resolve === 'object') {
|
||||
if (!true) {
|
||||
resolve('foo');
|
||||
} else {
|
||||
reject(new Error());
|
||||
|
||||
Reference in New Issue
Block a user