Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/unplugin-combine. Unified plugin that combines other plugins into one plugin.
Something went wrong. Try again.
1234567export function wrapPromise<T>( value: T, flag: boolean,): T | Promise<Awaited<T>> { return flag ? Promise.resolve(value) : value}