error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.


!!! error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
==== /types.d.ts (0 errors) ====
    export declare type User = {
        name: string;
    }
    
==== /a.ts (0 errors) ====
    import type { User } from "./types.d.ts";
    export type { User } from "./types.d.ts";
    
    export const user: User = { name: "John" };
    
    export function getUser(): import("./types.d.ts").User {
        return user;
    }
    