1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var assertInputTypes = function (text, lang, slow, host) {
|
4 | if (typeof text !== 'string' || text.length === 0) {
|
5 | throw new TypeError('text should be a string');
|
6 | }
|
7 | if (typeof lang !== 'string' || lang.length === 0) {
|
8 | throw new TypeError('lang should be a string');
|
9 | }
|
10 | if (typeof slow !== 'boolean') {
|
11 | throw new TypeError('slow should be a boolean');
|
12 | }
|
13 | if (typeof host !== 'string' || host.length === 0) {
|
14 | throw new TypeError('host should be a string');
|
15 | }
|
16 | };
|
17 | exports.default = assertInputTypes;
|
18 |
|
\ | No newline at end of file |