Skip to content

Commit

Permalink
Merge pull request #299 from jermspeaks/bug/types-collections
Browse files Browse the repository at this point in the history
Update type imports
  • Loading branch information
jermspeaks authored Jan 30, 2024
2 parents 9b1838e + 61cea07 commit 5f1a5e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import { CollectionEntry, getCollection, getEntry } from "astro:content";
import { getCollection, getEntry } from "astro:content";
import BlogPost from "../../layouts/BlogPost.astro";
import type { CollectionEntry } from "astro:content";
export async function getStaticPaths() {
const posts = await getCollection("blog");
Expand Down
9 changes: 4 additions & 5 deletions src/pages/curation/newsletter/index.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
import { CollectionEntry, getCollection } from "astro:content";
import FormattedDate from "../../../components/FormattedDate.astro";
import { getCollection } from "astro:content";
import CurationDetailsPage from "../../../layouts/CurationDetailsPage.astro";
import FormattedDate from "../../../components/FormattedDate.astro";
import ProseArticle from "../../../components/ProseArticle.astro";
import type { CollectionEntry } from "astro:content";
const series: [CollectionEntry<"series">] = (
await getCollection("series")
).sort(
const series = (await getCollection("series")).sort(
(a: CollectionEntry<"series">, b: CollectionEntry<"series">) =>
b.data.createdDate.valueOf() - a.data.createdDate.valueOf()
);
Expand Down
3 changes: 2 additions & 1 deletion src/pages/project/[...slug].astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import { CollectionEntry, getCollection } from "astro:content";
import { getCollection } from "astro:content";
import ProjectPage from "../../layouts/ProjectPage.astro";
import type { CollectionEntry } from "astro:content";
export async function getStaticPaths() {
const projects = await getCollection("project");
Expand Down

0 comments on commit 5f1a5e5

Please sign in to comment.