Replies: 1 comment
-
Take a look at the default type replacements: https://github.com/spatie/typescript-transformer/blob/main/src/TypeScriptTransformerConfig.php#L72 If you're using Laravel, these are set within the config file. I think it should be possible over there to set the correct type. |
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
-
Hello
I would like to transform every subclass of DateTimeInterface to
Brand<string, "DateTimeString">
in typescript.Given I have a class like this:
it should be transformed to
But the collector I wrote does not seem to pick it up:
How do I need to write the collector in this case?
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions