IONIC EXAMPLES:

Interface

interface AppPage {
  url: string;
  iosIcon: string;
  mdIcon: string;
  title: string;
}
const appPages: AppPage[] = [
  {
    title: "Inbox",
    url: "/page/Inbox",
    iosIcon: mailOutline,
    mdIcon: mailSharp,
  },
];

Interface with props

interface ContainerProps {
  name: string;
}
const ExploreContainer: React.FC<ContainerProps> = ({ name }) => {
  return (
    <div>
      ...{name}
    </div>
  );
};

 

for (let [fieldName, field] of Object.entries<any>(form)) {

 

const canvasRef = useRef<any>();