Use default generics #67
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi there. I'm using this, and I notice that you are using a lot of generics in the Typescript typing. I wonder if you could consider using them with defaults.
I don't actually understand where is the generic being used, and using this would allow to keep the type checking as it is suppose to be without declaring the generics
any.Also, I would like to type the
dataproperty inGrayMatterFileinterface. With a generic type, of curse. Could be done with this:Using default generics again, allow this to keep backward compatibility, if the
Tis declared after theI.Let me know what you think about this, I happily would do the PR with the changes.
I'm clueless about typescript, it's on my list of things to learn about, but I'm afraid I'll need feedback from others on this one. @onokumus any thoughts?
I'm okay with adding the default typings, but I'm not okay with changing the type of
datato beT, as I mentioned in #69 .If you want to raise a PR to add in the default generics then I will review and approve it. Cheers.
I think this package is dead. Following conventions of type casting from the likes of Axios I've just abstracted this library to support generics like: