0

In this code below, what does Promise<LetterService[]> mean?

Is the LetterService[] saying create an array with LetterService objects inside it?

What are the <> indicating here?

export default interface LetterService {
    GetLetters(): Promise<LetterService[]> }
foxRun28
  • 13
  • 4
  • 3
    It's TypeScript https://www.typescriptlang.org/docs/handbook/2/generics.html – VLAZ Jan 10 '23 at 18:35
  • Like VLAZ said, it's TypeScript. And `Promise` means a Promise that resolves to an array of `LetterService` instances. – Robo Robok Jan 10 '23 at 18:36

0 Answers0