FriendsOfSymfony / FOSJsRoutingBundle

A pretty nice way to expose your Symfony routing to client applications.
1.48k stars 260 forks source link

Fix TypeScript error when `verbatimModuleSyntax` is enabled #475

Closed NilsMinten closed 5 months ago

NilsMinten commented 5 months ago

When verbatimModuleSyntax is enabled in TypeScript when building your application two Type errors would pop up.

TS1484: 'RoutesMap' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

TS1484: 'Route' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.