From a7bd34677b135ef73b6243c6341c7a784dc90b73 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sat, 8 Feb 2020 21:50:20 +0100 Subject: [PATCH] Fixed build errors --- resources/ts/components/picker.ts | 2 +- resources/ts/model/stop.ts | 3 +++ tsconfig.json | 5 +++-- webpack.config.js | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/resources/ts/components/picker.ts b/resources/ts/components/picker.ts index f8a8f61..476d07a 100644 --- a/resources/ts/components/picker.ts +++ b/resources/ts/components/picker.ts @@ -1,6 +1,6 @@ import Component from "vue-class-component"; import Vue from "vue"; -import { Destination, Line, Stop, StopGroup, StopGroups } from "../model"; +import { Destination, Line, StopWithDestinations as Stop, StopGroup, StopGroups } from "../model"; import { Prop, Watch } from "vue-property-decorator"; import { FetchingState, filter, map, match, unique } from "../utils"; import { debounce } from "../decorators"; diff --git a/resources/ts/model/stop.ts b/resources/ts/model/stop.ts index 40e0e6b..d7bbd13 100644 --- a/resources/ts/model/stop.ts +++ b/resources/ts/model/stop.ts @@ -10,6 +10,9 @@ export interface Stop { }; onDemand?: boolean; variant?: string; +} + +export interface StopWithDestinations extends Stop{ destinations?: Destination[]; } diff --git a/tsconfig.json b/tsconfig.json index 9f6d92c..3d3c4a9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,5 +9,6 @@ "moduleResolution": "node", "downlevelIteration": true }, - "files": ["resources/ts/app.ts"] -} \ No newline at end of file + "files": ["resources/ts/app.ts"], + "include": ["resources/ts/**/*.ts"] +} diff --git a/webpack.config.js b/webpack.config.js index 439c13d..367d75b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,5 @@ const path = require('path'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); -const BabelMinifyPlugin = require('babel-minify-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const ImageminPlugin = require('imagemin-webpack-plugin').default;