From b4f8c54fa3f99d8808d60cf24bfa79cb4bf4c940 Mon Sep 17 00:00:00 2001 From: Silas Rech Date: Thu, 8 Mar 2018 16:28:17 +0100 Subject: [PATCH] Fix CI --- types/steam-totp/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/steam-totp/index.d.ts b/types/steam-totp/index.d.ts index e405ef7ea1..a3ff963428 100644 --- a/types/steam-totp/index.d.ts +++ b/types/steam-totp/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/DoctorMcKay/node-steam-totp // Definitions by: Max Uetrecht // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// @@ -50,15 +51,13 @@ export function generateConfirmationKey(identitySecret: Buffer | string, time: n */ export function getConfirmationKey(identitySecret: Buffer | string, time: number, tag: string): string; -export type Callback = (error: Error, offset?: number, elapsedTime?: number) => void; - /** * Requests the time offset from the Steam API. * @param callback - The result of the steam api request * @param [timeOffset=0] - If you know how far off your clock is from the Steam servers, put the offset here in seconds * @returns the time offset */ -export function getTimeOffset(callback: Callback): void; +export function getTimeOffset(callback: (error: Error, offset?: number, elapsedTime?: number) => void): void; /** * Get a standardized device ID based on your SteamID.