UNPKG

509 BTypeScriptView Raw
1/**
2 * @name secondsToMilliseconds
3 * @category Conversion Helpers
4 * @summary Convert seconds to milliseconds.
5 *
6 * @description
7 * Convert a number of seconds to a full number of milliseconds.
8 *
9 * @param seconds - The number of seconds to be converted
10 *
11 * @returns The number of seconds converted in milliseconds
12 *
13 * @example
14 * // Convert 2 seconds into milliseconds
15 * const result = secondsToMilliseconds(2)
16 * //=> 2000
17 */
18export declare function secondsToMilliseconds(seconds: number): number;