diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d1a4110..37669d0c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,9 +59,6 @@ jobs: - php: '8.2' laravel: 7.* steps: - - if: ${{ matrix.os[0] == 'Windows' }} - run: | - git config --global core.autocrlf false - uses: actions/checkout@v3 - uses: shivammathur/setup-php@v2 with: diff --git a/src/Output/Types.php b/src/Output/Types.php index 97b3ec2d..04e69453 100644 --- a/src/Output/Types.php +++ b/src/Output/Types.php @@ -28,7 +28,7 @@ public function __toString(): string return <<toJson(JSON_PRETTY_PRINT)} + interface RouteLookup {$routes->toJson()} } export {}; diff --git a/tests/fixtures/ziggy-7.d.ts b/tests/fixtures/ziggy-7.d.ts index bb2e8c23..6403f976 100644 --- a/tests/fixtures/ziggy-7.d.ts +++ b/tests/fixtures/ziggy-7.d.ts @@ -1,21 +1,5 @@ /* This file is generated automatically! */ declare module 'ziggy-js' { - interface RouteLookup { - "posts.index": [], - "postComments.show": [ - { - "name": "post" - }, - { - "name": "comment", - "binding": "uuid" - } - ], - "postComments.store": [ - { - "name": "post" - } - ] -} + interface RouteLookup {"posts.index":[],"postComments.show":[{"name":"post"},{"name":"comment","binding":"uuid"}],"postComments.store":[{"name":"post"}]} } export {}; diff --git a/tests/fixtures/ziggy.d.ts b/tests/fixtures/ziggy.d.ts index 19ef8cf2..4c2de920 100644 --- a/tests/fixtures/ziggy.d.ts +++ b/tests/fixtures/ziggy.d.ts @@ -1,12 +1,5 @@ /* This file is generated automatically! */ declare module 'ziggy-js' { - interface RouteLookup { - "posts.index": [], - "postComments.store": [ - { - "name": "post" - } - ] -} + interface RouteLookup {"posts.index":[],"postComments.store":[{"name":"post"}]} } export {};