'Derive type of a nested generic type instance in TYpescript
Lets say I have a table object:
let table : Table<{row:string}> = createTable<{row:string}>();
How can I derive the {row:string} part from the table instance. E.g. like here:
let column : Column< XXX > // XXX = here i want to derive {row:string} from the table instance
so that column is of type:
Column<{row:string}>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
