zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[@zenstackhq/trpc] Generate proper type imports

Open juni0r opened this issue 1 year ago • 0 comments

The TRPC plugin generates some type imports without explicitely declaring them as such. This results in a compile error if the option verbatimModuleSyntax is enabled.

Screenshot 2024-09-17 at 14 45 32
import { ClientType as UserClientType } from "./User.router";

should be

import type { ClientType as UserClientType } from "./User.router";

[email protected] @zenstackhq/[email protected]

juni0r avatar Sep 17 '24 12:09 juni0r