'How to use jQuery together with Velocityjs in a Vite(Typescript) project

in my Vite project I want to use jQuery combined with Velocityjs, but i'm not sure how to import everything so the common syntax $("body").velocity({ opacity: 0.5 }); works.

at the moment I have only imported the main files in my main.ts

import $ from "jquery";
import Velocity from "velocity-animate";


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source