blazing
blazing

Reputation: 577

How to add array to fields in Typescript

Hey I am new to Type script, and I am wonder how would I set ResultsPer and Entries as an array?

interface IProps {
    ResultsPer: number;
    Entries: number
}

Upvotes: 0

Views: 24

Answers (1)

Oleksandr Poshtaruk
Oleksandr Poshtaruk

Reputation: 2166

interface IProps {
    ResultsPer: number[];
    Entries: number[];
}

Upvotes: 1

Related Questions