在typescript(React native)上反序列化数组数据时出现问题

在typescript(React native)上反序列化数组数据时出现问题,typescript,parsing,Typescript,Parsing,我需要将我的数据数组解析为myModel[] 这是数据加载: export function getMockFAQ() { return [ { title: "FAQ Question 1" }, { title: "FAQ Question 1" }, { title: "FAQ Question 1" } ] } 我的模型: export interface FAQInterface

我需要将我的数据数组解析为myModel[]

这是数据加载:

    export function getMockFAQ() {
return [
    {
        title: "FAQ Question 1"
    },
    {
        title: "FAQ Question 1"
    },
    {
        title: "FAQ Question 1"
    }
]
}
我的模型:

export interface FAQInterface {
title: string;
}
如何将此数据转换为FAQ接口[]

const data = getMockFAQ();
太容易了

  export function getMockFAQ(): FAQInterface[] {
return [
{
    title: "FAQ Question 1"
},
{
    title: "FAQ Question 1"
},
{
    title: "FAQ Question 1"
}
]
}