I tried this:
export interface ITarifFeatures {
key: string;
}
export interface ITarif {
features: ITarifFeatures[];
}
Then I have create object based on interface:
let obj<ITarif> {
name: "Базовый",
description: "Подходит для...",
currency: "A",
price: 1.99,
period: "Месяц",
features: ["СМС уведомления"]
};
But this property is wrong:
features: ["СМС уведомления"]
Also I tried:
export type ITarifFeatures = {
key: string[];
}
export interface ITarif {
name: string;
description: string;
currency: string;
price: number;
period: string;
features: ITarifFeatures
}
features: string[]