I am currently utilizing a third-party library that includes a type defined as the following:
export interface ThirdPartyNodeType {
id: string;
name: string;
data: any;
}
Upon further exploration, I have identified the content that I intend to include within the ThirdPartyNodeType.data
:
export interface MyOwnDataProperties {
foo: string;
bar: string;
}
My question is, how can I inform TypeScript that I no longer wish for ThirdPartyNodeType.data
to be of type any
, but rather it should adhere to the structure defined in MyOwnDataProperties
?