Updated method signature to use ES7/TypeScript/Flow/etc style declaration