Trying to enhance an existing interface with a new member is causing Typescript errors for me.
// foo.js
export interface IOption {
xOffset: number
}
import {IOption} from 'foo';
// Attempting to extend IOption with `yOffset`, but encountered an error.
// Received the message: `Import declaration conflicts with local declaration of 'IOptions'`
interface IOption {
yOffset: number
}
Can anyone explain what's going wrong in my code?