in typescript how to create method that takes interface as parameter and run its methods according to implementers code example
Example: export interface typescript
interface Props {}
export interface IRefered {
name: string
}
interface Props {}
export interface IRefered {
name: string
}