Skip to content

If you have picked a class, it is not an interface #1535

@kakasoo

Description

@kakasoo

Bug Report

If I'm only trying to pull certain functions out of the class, the type is not deduced as an interface.

import typia from "typia";

class A {
    a() {}

    b() {}
}

const Problem = typia.llm.application<
        Pick<A, 'a'>,
        "chatgpt"
      >();

console.log(Problem);
{
  "message": "Failed to write LLM application: LLM application's generic argument must be a class/interface type.",
  "name": "Error"
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions