UNPKG

400 BTypeScriptView Raw
1import type { AnyString } from '../types';
2/**
3 * @name isString
4 * @summary Tests for a string.
5 * @description
6 * Checks to see if the input value is a JavaScript string.
7 * @example
8 * <BR>
9 *
10 * ```javascript
11 * import { isString } from '@polkadot/util';
12 *
13 * console.log('isString', isString('test')); // => true
14 * ```
15 */
16export declare function isString(value: unknown): value is AnyString;