UNPKG

storycrawler

Version:

Utilities to build Storybook crawling tools with Puppeteer

10 lines (9 loc) 252 B
/** * * Calculates time until given Promise object is resolved * * @param target - Target Promise * @returns Time to perform and the result of the original promise * **/ export declare function time<T>(target: Promise<T>): Promise<[T, number]>;