Typescript support

This commit is contained in:
2020-09-26 14:49:58 +02:00
parent 57ed783083
commit dcfc3eccc2
22 changed files with 3132 additions and 1264 deletions

View File

@ -1,7 +1,8 @@
<script>
<script lang="typescript">
import { format } from 'date-fns'
import type { PostContent } from '../../routes/blog/_content';
export let post
export let post: PostContent
</script>
<style>

View File

@ -1,5 +1,7 @@
<script>
export let project
<script lang="typescript">
import type { ProjectAttributes } from "../../routes/portfolio/index.json";
export let project: ProjectAttributes
</script>
<style>