To handle both importing via UMD and modules:

    1. ts