Is it possible to use Phaser 3 with AMD/RequireJS and TypeScript?

I found the solution here: https://github.com/photonstorm/phaser3-docs/issues/67

I opened the “node_modules/phaser/types/phaser.d.ts” file and renamed ‘phaser’ to ‘Phaser’:

declare module 'Phaser' {
    export = Phaser;
}