add typescript support to app

This commit is contained in:
Triston Armstrong 2023-12-29 17:29:50 -06:00
parent 416544c384
commit 36236ceead
5 changed files with 38 additions and 4 deletions

BIN
bun.lockb

Binary file not shown.

5
next-env.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@ -18,6 +18,7 @@
"@mui/lab": "latest",
"@mui/material": "latest",
"@mui/x-tree-view": "^6.17.0",
"@types/node": "^20.10.5",
"cytoscape-d3-force": "latest",
"cytoscape-node-html-label": "latest",
"d3": "latest",

View File

@ -1,8 +1,8 @@
import Job from "../components/Job";
import Skill from "../components/Skill";
import Project from "../components/Project";
import Job from "../components/Job.js";
import Skill from "../components/Skill.js";
import Project from "../components/Project.js";
import Head from "next/head";
import { UsefulLinksList } from '../components/UsefulLinks'
import { UsefulLinksList } from '../components/UsefulLinks/index.js'
import { SocialLinksList } from '../components/SocialLinks/SocialLinks.js'
export default function Landing({ jobs, skills, projects }) {

28
tsconfig.json Normal file
View File

@ -0,0 +1,28 @@
{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}