I require a similar functionality:
interface A {
a: SomeUtilityType<number>;
}
to be the same as:
interface A {
a?: number;
}
I understand that I have the option to utilize Optional
from 'utility-types':
import { Optional } from 'utility-types';
type B = Optional<A, 'a'>
However, my specific requirement is for it to be used in this manner:
interface A {
a: SomeUtilityType<number>;
}