Skip to content
Merged
Prev Previous commit
Next Next commit
Ran pnpm format
  • Loading branch information
JoshuaKGoldberg committed Jun 22, 2023
commit d00bd008eef0279fd5087c772eaa0129c5e33ff5
8 changes: 3 additions & 5 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1118,11 +1118,9 @@ export interface AstroUserConfig {
* }
* ```
*/
integrations?: Array<| AstroIntegration
| Array<AstroIntegration | false | undefined | null>
| false
| undefined
| null>;
integrations?: Array<
AstroIntegration | Array<AstroIntegration | false | undefined | null> | false | undefined | null
>;

/**
* @docs
Expand Down
6 changes: 4 additions & 2 deletions packages/astro/src/core/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ export interface RouteInfo {
file: string;
links: string[];
scripts: // Integration injected
Array<| { children: string; stage: string }
Array<
| { children: string; stage: string }
// Hoisted
| { type: 'inline' | 'external'; value: string }>;
| { type: 'inline' | 'external'; value: string }
>;
styles: StylesheetAsset[];
}

Expand Down
18 changes: 10 additions & 8 deletions packages/integrations/node/src/response-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,16 @@ function nodeStreamIterator<T>(stream: NodeReadableStream): AsyncIterableIterato
let done = false;
const data: unknown[] = [];

const waiting: Array<[
(
value:
| IteratorResult<T, boolean | undefined>
| PromiseLike<IteratorResult<T, boolean | undefined>>
) => void,
(reason?: any) => void
]> = [];
const waiting: Array<
[
(
value:
| IteratorResult<T, boolean | undefined>
| PromiseLike<IteratorResult<T, boolean | undefined>>
) => void,
(reason?: any) => void
]
> = [];

function onData(chunk: any) {
if (error) return;
Expand Down
4 changes: 3 additions & 1 deletion packages/markdown/remark/src/load-plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ async function importPlugin(p: string | unified.Plugin): Promise<unified.Plugin>
}

export function loadPlugins(
items: Array<string | [string, any] | unified.Plugin<any[], any> | [unified.Plugin<any[], any>, any]>
items: Array<
string | [string, any] | unified.Plugin<any[], any> | [unified.Plugin<any[], any>, any]
>
): Array<Promise<[unified.Plugin, any?]>> {
return items.map((p) => {
return new Promise((resolve, reject) => {
Expand Down