Typescript bundling expanding union types #1214
Replies: 1 comment
-
Got a fix for this issue, i just changed the arrow function to normal function, that fixed this issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my code
After bundiling
declare const ControllerFactory: <T extends "accesstoken" | "action" | "auditlog" | "cron" | "gallery" | "gallerycategory" | "galleryitems" | "migration" | "module" | "permission" | "realtimenotification" | "realtimenotificationstatus" | "role" | "schedulednotification" | "settings" | "template" | "user" | "sample">({ module, table, dtos, upsertUniqueFields, validations, isPublic, }: ControllerFactoryType<T>) => new () => CrudControllerType<T>;
Union types are expanding after bundiling
--dts
Beta Was this translation helpful? Give feedback.
All reactions