typescript-go
typescript-go copied to clipboard
difference in vs code tooltips for generic method
difference in how new typescript works with generics:
old:
new:
method signature:
const handleStep = async <T extends SendStep>(
stepName: T,
validationFn: (typeof SendProcess)[typeof stepName],
...args: Parameters<typeof validationFn>
) => {
///...
}
This is a temporary problem; our type printing is not yet complete but will improve (or be fixed) with #791.
This should be fixed now, after #791 and other fixes.