@corux/ask-extensions
Version:
Extensions to improve development with Alexa Skills Kit SDK
21 lines (20 loc) • 597 B
TypeScript
import { HandlerInput, RequestInterceptor } from "ask-sdk-core";
/**
* Retrieves the devices timezone setting.
* By default it configures Luxon to use the timezone instead of UTC.
*
* This interceptor requires a configured ApiClient, e.g.:
*
* <code>
* SkillBuilders.custom()
* ...
* .withApiClient(new DefaultApiClient())
* ...
* </code>
*/
export declare class TimezoneInterceptor implements RequestInterceptor {
private readonly callback;
private cache;
constructor(callback?: (timezone: string) => void);
process(handlerInput: HandlerInput): Promise<void>;
}