typescript type of interface property code example
Example 1: typescript valueof interface
type ValueOf<T> = T[keyof T];
Example 2: interface ts one valu
// use type instead interface
type StringOrNull = string | null;
type ValueOf<T> = T[keyof T];
// use type instead interface
type StringOrNull = string | null;