我想为我的数据使用接口。 的 forms.interface.ts
interface Field {
name: string;
style: string;
}
interface Form {
name: string;
visible_name: string;
default: string;
fields: Field[];
}
interface Interface {
form: Form;
}
export interface RootInterface {
interface: Interface[];
}
我试过了......
import {RootInterface} from "../int/form.protorype.interface"
export class MainServiceProvider {
private form:RootInterface;
如果我尝试为此接口private _generatordata:RootInterface
分配var
存在错误Type 'RootInterface' is not an array type or a
string type