See SJsClass ctor and look for // TODO: Support optional member functions
interface Test {
method?(a: number) : string;
}
Implementation should check for existence of 'method' property, call it if it exists, return undefined otherwise. Return value is de facto string | undefined