UNPKG

jvsveml6070

Version:

Node.js package for the Vishay VEML6070 UVA Light Sensor, written in TypeScript.

15 lines (14 loc) 423 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.delay = void 0; /** * Waits the specified delay in milliseconds and then resolves. * * @param milliseconds - The delay in milliseconds. * * @returns A `Promise` that resolves after the provided delay. */ function delay(milliseconds) { return new Promise((resolve) => setTimeout(resolve, milliseconds)); } exports.delay = delay;