mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] format
This commit is contained in:
parent
1734c49f51
commit
13c001062b
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
export function isPromise<T = any>(value: any): value is Promise<T> {
|
export function isPromise<T = any>(value: any): value is Promise<T> {
|
||||||
return !!value && typeof value === 'object' && 'then' in value && typeof value.then === 'function';
|
return (
|
||||||
|
!!value && typeof value === 'object' && 'then' in value && typeof value.then === 'function'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function* streamAsyncIterator(stream: ReadableStream) {
|
export async function* streamAsyncIterator(stream: ReadableStream) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue