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
I think the next thing holding back this lib is the lack of automatic typescript support.
One way to manage this would be to change the way TypeScript support is provided and to create a compiler/watcher for auto compiling types to node_modules.
This would allow PDSL to be strongly typed by simply adding a unique typescript key identifier.
The type signature of the returned function would look something like this:
typePredicateFn=<T>(input:any)=>input is PDSLTypes[T]
Not sure if it is possible to maintain backward compatibility need to look up if conditionals are possible in TypeScript - I have a feeling they might be....
The text was updated successfully, but these errors were encountered:
I think the next thing holding back this lib is the lack of automatic typescript support.
One way to manage this would be to change the way TypeScript support is provided and to create a compiler/watcher for auto compiling types to node_modules.
This would allow PDSL to be strongly typed by simply adding a unique typescript key identifier.
Behind the scenes types would be compiled to somewhere in node modules:
The type signature of the returned function would look something like this:
Not sure if it is possible to maintain backward compatibility need to look up if conditionals are possible in TypeScript - I have a feeling they might be....
The text was updated successfully, but these errors were encountered: