Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating a specific type causes compilation to fail #1431

Open
jff1625 opened this issue Dec 13, 2024 · 0 comments
Open

Validating a specific type causes compilation to fail #1431

jff1625 opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jff1625
Copy link

jff1625 commented Dec 13, 2024

  • Typia Version: 7.3.2
  • Expected behavior: tsc compiles successfully
  • Actual behavior: error TS2367: This comparison appears to be unintentional because the types 'string' and 'any[]' have no overlap.

Some kind of incompatibility with a 3rd-party type lib @types/google-publisher-tag
If I try to validate their type googletag.GeneralSize the compilation fails, with the above error.

See attached minimal reproduction zip. bun run build or simply tsc will trigger the error.

Please advise if the problem comes from you or from google.

💻 Code occuring the bug

import { is } from "typia";
is<googletag.GeneralSize>(1);

typia-GeneralSize.zip

@samchon samchon self-assigned this Dec 14, 2024
@samchon samchon added the bug Something isn't working label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants