From 2b7a26769927b6a1a24beb6b557662bcec676fa4 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Wed, 14 Jun 2023 20:01:26 -0700 Subject: [PATCH] docs: Add conditional TypeScript block to migration guide (#3216) --- docs/guides/migrating.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/guides/migrating.md b/docs/guides/migrating.md index dddf879a43..8cfd803d93 100644 --- a/docs/guides/migrating.md +++ b/docs/guides/migrating.md @@ -27,6 +27,14 @@ The new [schemas and resolvers](../api/schema/index.md) cover most use cases pre ## TypeScript + + +You have selected JavaScript as the language which does not have type information. + + + + + The new version comes with major improvements in TypeScript support from improved service typings, fully typed hook context and typed configuration. You can see the changes necessary in the Feathers chat [here](https://github.com/feathersjs/feathers-chat-ts/compare/dove-pre). ### Application and hook context @@ -53,6 +61,8 @@ Now `import { HookContext } from './declarations'` can be used as the context in ### Service types + + Service types now only need the actual service class type and should no longer include the `& ServiceAddons`. E.g. for the messages service like this: ```ts @@ -94,6 +104,8 @@ declare module '@feathersjs/feathers/lib/declarations' { } ``` + + ## Deprecations and breaking changes ### Express middleware order