Skip to content

Commit 80fa2ef

Browse files
committed
test: improve typing
1 parent 9915222 commit 80fa2ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mix.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'fs';
33

44
import mix from 'laravel-mix';
55
import { Component } from 'laravel-mix/src/components/Component';
6-
import { EnvironmentPlugin } from 'webpack';
6+
import { EnvironmentPlugin, Configuration } from 'webpack';
77

88
import { parseAll, hasPhpTranslations } from './loader';
99

@@ -23,11 +23,11 @@ mix.extend('i18n', class extends Component {
2323
langPath: string;
2424
context: any;
2525

26-
register(langPath = 'lang'): void {
26+
register(langPath: string = 'lang'): void {
2727
this.langPath = this.context.paths.rootPath + path.sep + langPath;
2828
}
2929

30-
webpackConfig(config): void {
30+
webpackConfig(config: Configuration): void {
3131
let files = [];
3232

3333
config.watchOptions = {

0 commit comments

Comments
 (0)