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 am unsure of the right name for a type like this, but will explain the use-case:
Given a function f, that takes an argument of type T (i.e. function f(t: T) I would like to create the following class:
import defaults from 'defaults';
class Helper<B extends PartialDeep<T>> {
private base: B;
constructor(base: B) {
this.b = b;
}
// I want `DeepPartialDiff` to make optional anything that has been passed in the constructor, but keep required anything NOT passed in the constructor.
runF(overrides: DeepPartialDiff<T, B>): ReturnType<typeof f> {
return f(defaults(overrides, this.base));
}
}
Type source
No response
Search existing types and issues first
I tried my best to look for it
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
The funding will be given to active contributors.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
Type description + examples
I am unsure of the right name for a type like this, but will explain the use-case:
Given a function
f
, that takes an argument of typeT
(i.e.function f(t: T)
I would like to create the following class:Type source
No response
Search existing types and issues first
Upvote & Fund
The text was updated successfully, but these errors were encountered: