// @target: es6 interface I { [s: string]: (x: string) => number; } var o: I = { [+"foo"](y) { return y.length; }, [+"bar"]: y => y.length }