how to import interface in typescript code example
Example 1: typescript interface
interface NumberOrStringDictionary {
[index: string]: number | string;
length: number; // ok, length is a number
name: string; // ok, name is a string
}Try
Example 2: export interface typescript
interface Props {}
export interface IRefered {
name: string
}