lundi 9 août 2021

Is there a way to read property names from interface in typescript similar to reflections in c#

I have an interface defined and has multiple properties. Is there a way that I could read the property names in typescript/angular.

My interface looks is something similar as below

    export interface InterfaceName
   {
     property1: string;
     property2: string;
     property3: number;
   }




Aucun commentaire:

Enregistrer un commentaire