Documentation update needed - uppy.requestCloseModal is not a function

On this page:

This code sample is not correct and will trigger JS console errors as there is no such function nor method

  doneButtonHandler: () => {

instead, I suspect the example should show

  doneButtonHandler: () => {

This was the only way I was able to trigger the modal.
Seems to me that “Uppy.requestCloseModal();” is no longer a function in 3.3.1

it should be noted I am using a custom function as follows

doneButtonHandler: () => { onDoneClick(); },

onDoneClick = function (files) {
	if($('#user_completed').val() > 0) { 
          // do custom js form Validator stuff here with _files
          // tell user to upload missing stuff, show errors, ect...

Related errors:

Uncaught TypeError: uppy.reset is not a function
Uncaught TypeError: Cannot read properties of undefined (reading 'uppy')
Uncaught TypeError: uppy.requestCloseModal is not a function