Skip to content

Commit 833dec3

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 30ab354 commit 833dec3

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/Console/DevToolCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ protected function installNpmDependencies(Filesystem $filesystem, PackageManifes
7777
'npm install --dev '.implode(' ', $dependencies),
7878
], package_path());
7979

80+
$filesystem->copy(join_paths(__DIR__, 'stubs', 'tsconfig.json'), package_path('tsconfig.json'));
81+
8082
if (in_array('tailwindcss', $dependencies)) {
8183
$filesystem->copy(join_paths(__DIR__, 'stubs', 'postcss.config.js'), package_path('postcss.config.js'));
8284
$filesystem->copy(join_paths(__DIR__, 'stubs', 'tailwind.config.js'), package_path('tailwind.config.js'));

src/Console/stubs/tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": true
4+
}
5+
}

types/@types/laravel-nova/index.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { Errors as FormErrors } from './../../index'
2-
31
declare module 'laravel-nova' {
2+
import type { Errors as FormErrors } from 'laravel-nova-devtool'
3+
44
export namespace PreventsFormAbandonment {}
55
export namespace PreventsModalAbandonment {}
66
export namespace DependentFormField {}
@@ -15,10 +15,8 @@ declare module 'laravel-nova' {
1515
export namespace HandlesValidationErrors {}
1616
export namespace HasCards {}
1717
export namespace HandlesPanelVisibility {}
18-
1918
export namespace CopiesToClipboard {}
20-
21-
export type Errors = FormErrors;
19+
export class Errors extends FormErrors {}
2220

2321
export function mapProps(attributes: Array<string>): {[key: string]: any};
2422
export function useLocalization(): {__: (key: string, replace: {[key: string]:string}) => string};

0 commit comments

Comments
 (0)