At least what I have seen in Ruby and Typescript, they are excellent at doing what you asked for. But if what you asked for is stupid they will happily make it happen.
They don’t make normal mistakes like typos and they aren’t lazy so things like tests and checking error cases is usually done.