UNPKG

1.65 kBTypeScriptView Raw
1/**
2 * Copyright (C) 2016-2019 Michael Kourlas
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16/**
17 * @private
18 */
19export declare function isUndefined(val: unknown): val is undefined;
20/**
21 * @private
22 */
23export declare function isNull(val: unknown): val is null;
24/**
25 * @private
26 */
27export declare function isObject(val: unknown): val is Record<string, unknown>;
28/**
29 * @private
30 */
31export declare function isArray(val: unknown): val is unknown[];
32/**
33 * @private
34 */
35export declare function isFunction(val: unknown): val is Function;
36/**
37 * @private
38 */
39export declare function isSet(val: unknown): val is Set<unknown>;
40/**
41 * @private
42 */
43export declare function isMap(val: unknown): val is Map<unknown, unknown>;
44/**
45 * Returns a string representation of the specified value, as given by the
46 * value's toString() method (if it has one) or the global String() function
47 * (if it does not).
48 *
49 * @param value The value to convert to a string.
50 *
51 * @returns A string representation of the specified value.
52 *
53 * @private
54 */
55export declare function stringify(value: any): string;