'Typing method of a abstract class with an interface

Consider this trivial example:

abstract class Foo {

  public abstract functionAdd(number1, number2, number3): number

  public abstract functionMultiply(number1, number2, number3): number
}

interface Numbers {
  number1: number
  number2: number
  number3: number
}

How can I use the interface Numbers to describe parameters of both methods? Perhaps there's other - more idiomatic - way of defining abstract methods?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source