From cb9453918acf5b9afac19a5ff11c75986ed5415a Mon Sep 17 00:00:00 2001 From: Victor Garcia Date: Thu, 9 Nov 2023 11:57:48 +0100 Subject: [PATCH] feat: added typed `useLink` #120 --- playground/src/pages/index.vue | 8 +- src/core/output/fileSave/definitions.save.ts | 5 + .../blocks/routes/routes-paths.block.ts | 4 +- .../generators/files/__navigateTo.file.ts | 3 +- .../output/generators/files/__paths.file.ts | 6 +- .../generators/files/__typed-router.d.file.ts | 2 + .../generators/files/__useTypedLink.file.ts | 63 +++++ .../output/generators/files/index.file.ts | 1 + src/core/output/generators/files/index.ts | 1 + .../simple/tests/router/navigateTo.spec-d.ts | 3 +- .../simple/tests/routes/useLink.spec-d.ts | 245 ++++++++++++++++++ 11 files changed, 330 insertions(+), 11 deletions(-) create mode 100644 src/core/output/generators/files/__useTypedLink.file.ts create mode 100644 test/fixtures/simple/tests/routes/useLink.spec-d.ts diff --git a/playground/src/pages/index.vue b/playground/src/pages/index.vue index cb76409..e4148d0 100644 --- a/playground/src/pages/index.vue +++ b/playground/src/pages/index.vue @@ -7,15 +7,14 @@ Navigate Link - Navigate Link - Navigate Link + Navigate Link + Navigate Link