Small type definition defined in JS file, which was showing "You need TS file to make a type definition".