interface name is not identified typescript code example
Example 1: typescript interface
interface LabeledValue {
label: string;
}
function printLabel(labeledObj: LabeledValue) {
console.log(labeledObj.label);
}
let myObj = { size: 10, label: "Size 10 Object" };
printLabel(myObj);Try
Example 2: export interface typescript
interface Props {}
export interface IRefered {
name: string
}