typescript-primitives-type icon indicating copy to clipboard operation
typescript-primitives-type copied to clipboard

Nullable attributes

Open DiV666 opened this issue 2 years ago • 3 comments

Hi,

I have tried to use the library but I have problems with null values.

In a class with some attribute of type VideoName | null, the return type is VideoName | null when it should be string | null

Is it possible to fix this?

Regards

DiV666 avatar Sep 04 '22 14:09 DiV666

Hello!

We don't have null support because we don't have nulls in our code base right now.

On the other hand, I think that it is possible to implement this case so I invite you to make a PR if you want to add this feature so the utility will grow with the collaboration of the community 😄

Do you want to try it? 🤗

Thanks for all

ismanapa avatar Sep 05 '22 07:09 ismanapa

Of course, I will try, but I can't promise anything :smile:

DiV666 avatar Sep 05 '22 07:09 DiV666

Cool!

Give me a shout if you need anything

ismanapa avatar Sep 05 '22 07:09 ismanapa

I think that this is fixed with this #8 so I am going to close this issue

ismanapa avatar Feb 10 '23 10:02 ismanapa