Skip to content

Commit

Permalink
Follow new TypeScript syntax to import only types, config importsNotU…
Browse files Browse the repository at this point in the history
…sedAsValues as ForkTsCheckerPlugin requires
  • Loading branch information
hmsk committed Jul 7, 2020
1 parent d452ed8 commit 6f89927
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Configuration } from "@nuxt/types";
import { Configuration as WebpackConfiguration } from "webpack";
import type { NuxtConfig } from "@nuxt/types";
import type { Configuration as WebpackConfiguration } from "webpack";
import path from "path";
import Mode from "frontmatter-markdown-loader/mode";

Expand Down Expand Up @@ -29,7 +29,7 @@ const orderedWorks = [
"logofolio"
].join(",");

const config: Configuration = {
const config: NuxtConfig = {
buildModules: ["@nuxt/typescript-build"],
mode: "universal",
target: "static",
Expand Down
2 changes: 1 addition & 1 deletion pages/work/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<script lang="ts">
import mediumZoom from "medium-zoom";
import VueI18n from "vue-i18n";
import { Context } from "@nuxt/types";
import type { Context } from "@nuxt/types";
import PageBase from "~/lib/page-base";
import { Component } from "nuxt-property-decorator";
import { namespace } from "vuex-class";
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"noEmit": true,
"baseUrl": ".",
"resolveJsonModule": true,
"importsNotUsedAsValues": "preserve",
"paths": {
"~/*": [
"./*"
Expand Down

0 comments on commit 6f89927

Please sign in to comment.