diff --git a/docs/content/3.api/2.components/4.nuxt-link.md b/docs/content/3.api/2.components/4.nuxt-link.md index 95ecbf417e..96485ba4cc 100644 --- a/docs/content/3.api/2.components/4.nuxt-link.md +++ b/docs/content/3.api/2.components/4.nuxt-link.md @@ -91,7 +91,7 @@ Defaults can be overwritten, see [overwriting defaults](#overwriting-defaults) i You can overwrite `` defaults by creating your own link component using `defineNuxtLink`. -```js [components/MyNuxtLink.js] +```js [components/MyNuxtLink.ts] export default defineNuxtLink({ componentName: 'MyNuxtLink', /* see signature below for more */ @@ -100,7 +100,7 @@ export default defineNuxtLink({ You can then use `` component as usual with your new defaults. -:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/nuxt-link?terminal=dev&file=/components/MyNuxtLink.js" blank} +:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/nuxt-link?terminal=dev&file=/components/MyNuxtLink.ts" blank} ### `defineNuxtLink` signature diff --git a/docs/content/4.examples/4.routing/nuxt-link.md b/docs/content/4.examples/4.routing/nuxt-link.md index 6298400e32..803742691b 100644 --- a/docs/content/4.examples/4.routing/nuxt-link.md +++ b/docs/content/4.examples/4.routing/nuxt-link.md @@ -7,7 +7,7 @@ template: Example This example shows different ways to use ``. ::alert{type=info icon=💡} -`components/myNuxtLink.js` defines a custom ``. +`components/myNuxtLink.ts` defines a custom ``. :: ::ReadMore{link="/api/components/nuxt-link"} diff --git a/examples/composables/use-async-data/server/api/hello.js b/examples/composables/use-async-data/server/api/hello.ts similarity index 62% rename from examples/composables/use-async-data/server/api/hello.js rename to examples/composables/use-async-data/server/api/hello.ts index 3c434a5572..f5f760ec2c 100644 --- a/examples/composables/use-async-data/server/api/hello.js +++ b/examples/composables/use-async-data/server/api/hello.ts @@ -1 +1 @@ -export default req => `Hello world (${req.url.substr(1)}) (Generated at ${new Date().toGMTString()})` +export default req => `Hello world (${req.url.substr(1)}) (Generated at ${new Date().toUTCString()})` diff --git a/examples/routing/nuxt-link/components/MyNuxtLink.js b/examples/routing/nuxt-link/components/MyNuxtLink.ts similarity index 100% rename from examples/routing/nuxt-link/components/MyNuxtLink.js rename to examples/routing/nuxt-link/components/MyNuxtLink.ts