Skip to content

Receive types doesn't work in Vite when trying to resolve a type that was imported from another file. #456

Description

@marcus-sa
// shared.ts
export interface CreateUserData {
  readonly name: string & MinLength<10>;
}
// main.ts
import { CreateUserData } from './shared';

function fn<T>(t?: ReceiveType<T>) {
  return resolveReceiveType(t);
}

fn<CreateUserData>(); // {kind: 0}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions