We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d53ad7 + e63ce96 commit ba4d44dCopy full SHA for ba4d44d
src/helpers.php
@@ -4,7 +4,7 @@
4
use Illuminate\Support\Facades\Vite as ViteFacade;
5
6
if (! function_exists('module_path')) {
7
- function module_path($name, $path = '')
+ function module_path(string $name, string $path = ''): string
8
{
9
$module = app('modules')->find($name);
10
@@ -36,7 +36,7 @@ function public_path(string $path = ''): string
36
/**
37
* support for vite
38
*/
39
- function module_vite($module, $asset, $hotFilePath = null): Vite
+ function module_vite(string $module, string $asset, ?string $hotFilePath = null): Vite
40
41
return ViteFacade::useHotFile($hotFilePath ?: storage_path('vite.hot'))->useBuildDirectory($module)->withEntryPoints([$asset]);
42
}
0 commit comments