Is there any way to exclude/ignore a key based on the some key name regex or via it's ts type
For eg -
type MyType = {
age: number
nameSuffix: NameType
}
so here I want to exclude the nameSuffix key either by suffix keyword or NameType, as this type is not json convertiable so I totally want to ignore it.
Is there any way to exclude/ignore a key based on the some key name regex or via it's ts type
For eg - type MyType = { age: number nameSuffix: NameType }
so here I want to exclude the nameSuffix key either by suffix keyword or NameType, as this type is not json convertiable so I totally want to ignore it.