When using typescript the customer overlay property is required. According to the API documentation that should be optional and in fact when using regular js file it works fine. Attached is a screengrab of the main.d.ts file which confirms the custom overlay is required.