Skip to content

Commit 0f10384

Browse files
ascorbicastrobot-houston
authored andcommitted
[ci] format
1 parent 037495d commit 0f10384

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

packages/astro/templates/content/types.d.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,20 @@ declare module 'astro:content' {
3131
ContentEntryMap[C]
3232
>['slug'];
3333

34-
export type ReferenceDataEntry<C extends CollectionKey, E extends keyof DataEntryMap[C] = string> = {
34+
export type ReferenceDataEntry<
35+
C extends CollectionKey,
36+
E extends keyof DataEntryMap[C] = string,
37+
> = {
3538
collection: C;
3639
id: E;
37-
}
38-
export type ReferenceContentEntry<C extends keyof ContentEntryMap, E extends ValidContentEntrySlug<C> | (string & {}) = string> = {
40+
};
41+
export type ReferenceContentEntry<
42+
C extends keyof ContentEntryMap,
43+
E extends ValidContentEntrySlug<C> | (string & {}) = string,
44+
> = {
3945
collection: C;
4046
slug: E;
41-
}
47+
};
4248

4349
/** @deprecated Use `getEntry` instead. */
4450
export function getEntryBySlug<
@@ -70,13 +76,17 @@ declare module 'astro:content' {
7076
export function getEntry<
7177
C extends keyof ContentEntryMap,
7278
E extends ValidContentEntrySlug<C> | (string & {}),
73-
>(entry: ReferenceContentEntry<C, E>): E extends ValidContentEntrySlug<C>
79+
>(
80+
entry: ReferenceContentEntry<C, E>,
81+
): E extends ValidContentEntrySlug<C>
7482
? Promise<CollectionEntry<C>>
7583
: Promise<CollectionEntry<C> | undefined>;
7684
export function getEntry<
7785
C extends keyof DataEntryMap,
7886
E extends keyof DataEntryMap[C] | (string & {}),
79-
>(entry: ReferenceDataEntry<C, E>): E extends keyof DataEntryMap[C]
87+
>(
88+
entry: ReferenceDataEntry<C, E>,
89+
): E extends keyof DataEntryMap[C]
8090
? Promise<DataEntryMap[C][E]>
8191
: Promise<CollectionEntry<C> | undefined>;
8292
export function getEntry<

0 commit comments

Comments
 (0)