You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✏️ Describe the bug
when DataTypeScriptTransformer is added to config/typescript-transformer.php, any LiteralTypeScriptType attribute on a collection will be ignored.
✅ Expected behavior
buttons type is expected to respect LiteralTypeScriptType and to be equal to Array<UrlButton|CallButton>
but the result is buttons: Array<UrlButton>
🖥️ Versions
Laravel: 10
Laravel Data: 4.8
PHP: 8.1
The text was updated successfully, but these errors were encountered:
Mhh get your point this is because the DataTransformer for TypeScript Transformer doesn't really follow the rules and writes its own output. In TypeScript transformer 3 this all changes and then this should be possible, you'll just have to wait a few more weeks 😅
✏️ Describe the bug
when DataTypeScriptTransformer is added to config/typescript-transformer.php, any LiteralTypeScriptType attribute on a collection will be ignored.
↪️ To Reproduce
See code bellow
now run transform.
✅ Expected behavior
buttons type is expected to respect LiteralTypeScriptType and to be equal to Array<UrlButton|CallButton>
but the result is
buttons: Array<UrlButton>
🖥️ Versions
Laravel: 10
Laravel Data: 4.8
PHP: 8.1
The text was updated successfully, but these errors were encountered: