Yes, you can add it in the following way:
interface IExample {
get name(): string;
}
class Example implements IExample {
private _name: string = "Bob";
public get name() {
return this._name;
}
public set name(value) {
this._name = value;
}
}
Greetings.