Skip to content

Commit ae6632e

Browse files
committed
Add actual migration for routing imports
1 parent e6e595f commit ae6632e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/announcing-official-typescript-types-public-preview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ These types, as a fairly direct extraction from DefinitelyTyped, currently maint
315315

316316
In line with [RFC 0821: Public API for Type-Only Imports][0821], this PR also removes support for importing the types for `Transition`, `RouteInfo`, and `RouteInfoWithMetadata` from the private locations that DefinitelyTyped presently supports for backwards compatibility. Users will need to migrate to using the correct import paths when switching to use these imports.
317317

318+
- `import Transition from '@ember/routing/-private/transition'``import Transition from '@ember/routing/transition'`
319+
- `import RouteInfo from '@ember/routing/-private/route-info'``import RouteInfo from '@ember/routing/route-info'`
320+
- `import { RouteInfoWithMetadata } from '@ember/routing/-private/route-info-with-metadata'``import { RouteInfoWithMetadata } from '@ember/routing/route-info'`
321+
318322

319323
## New TypeScript users
320324

0 commit comments

Comments
 (0)