From b4c2ef752d8fccdd7561744b9e384bf72231f1ef Mon Sep 17 00:00:00 2001 From: zorkow Date: Wed, 8 Apr 2020 13:28:40 +0100 Subject: [PATCH] Improved config type. --- ts/a11y/sre_browser.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ts/a11y/sre_browser.d.ts b/ts/a11y/sre_browser.d.ts index d5593083b..9cf034939 100644 --- a/ts/a11y/sre_browser.d.ts +++ b/ts/a11y/sre_browser.d.ts @@ -67,7 +67,16 @@ declare namespace sre.ClearspeakPreferences { } declare namespace SRE { + type config = { + locale?: string, + modality?: string, + domain?: string, + style?: string, + markup?: string, + speech?: string, + semantics?: boolean + }; export function toEnriched(mml: string): void; - export function setupEngine(obj: any): void; - export function engineSetup(): any; + export function setupEngine(obj: config): void; + export function engineSetup(): config; }