🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
26
node_modules/astro/dist/runtime/server/render/util.d.ts
generated
vendored
Normal file
26
node_modules/astro/dist/runtime/server/render/util.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import type { SSRElement } from '../../../@types/astro';
|
||||
export declare const voidElementNames: RegExp;
|
||||
export declare const toAttributeString: (value: any, shouldEscape?: boolean) => any;
|
||||
export declare function defineScriptVars(vars: Record<any, any>): any;
|
||||
export declare function formatList(values: string[]): string;
|
||||
export declare function addAttribute(value: any, key: string, shouldEscape?: boolean): any;
|
||||
export declare function internalSpreadAttributes(values: Record<any, any>, shouldEscape?: boolean): any;
|
||||
export declare function renderElement(name: string, { props: _props, children }: SSRElement, shouldEscape?: boolean): string;
|
||||
/**
|
||||
* This will take an array of async iterables and start buffering them eagerly.
|
||||
* To avoid useless buffering, it will only start buffering the next tick, so the
|
||||
* first sync iterables won't be buffered.
|
||||
*/
|
||||
export declare function bufferIterators<T>(iterators: AsyncIterable<T>[]): AsyncIterable<T>[];
|
||||
export declare class EagerAsyncIterableIterator {
|
||||
#private;
|
||||
constructor(iterable: AsyncIterable<any>);
|
||||
/**
|
||||
* Starts to eagerly fetch the inner iterator and cache the results.
|
||||
* Note: This might not be called after next() has been called once, e.g. the iterator is started
|
||||
*/
|
||||
buffer(): Promise<void>;
|
||||
next(): Promise<IteratorResult<any, any>>;
|
||||
isStarted(): boolean;
|
||||
[Symbol.asyncIterator](): this;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue