diff options
Diffstat (limited to '')
-rw-r--r-- | typescript/src/AjaxSettings.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/typescript/src/AjaxSettings.ts b/typescript/src/AjaxSettings.ts new file mode 100644 index 0000000..b5b4cf4 --- /dev/null +++ b/typescript/src/AjaxSettings.ts @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: AGPL-3.0-or-later */ + +import AppID from "./AppID.js"; +import EntrypointParameter from "./EntrypointParameter.js"; + +export default AjaxSettings; + +type AjaxSettings = Readonly<{ + url: "https://api.wolframalpha.com/v2/query"; + dataType: "jsonp"; + traditional: true; + data: Readonly< + EntrypointParameter & { + appid: AppID; + output: "json"; + reinterpret: true; + podtimeout: 30; + scantimeout: 30; + parsetimeout: 30; + totaltimeout: 30; + formattimeout: 30; + } + >; +}>; + +// Wolfram|Alpha Full Results API Reference +// https://products.wolframalpha.com/api/documentation + +// jQuery.ajax() | jQuery API Documentation +// https://api.jquery.com/jQuery.ajax/ |