UNPKG

531 BTypeScriptView Raw
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7export declare function getType(value: unknown): ValueType;
8
9export declare const isPrimitive: (value: unknown) => boolean;
10
11declare type ValueType =
12 | 'array'
13 | 'bigint'
14 | 'boolean'
15 | 'function'
16 | 'null'
17 | 'number'
18 | 'object'
19 | 'regexp'
20 | 'map'
21 | 'set'
22 | 'date'
23 | 'string'
24 | 'symbol'
25 | 'undefined';
26
27export {};