UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

20 lines (18 loc) 595 B
import { NarrowedTo } from "./NarrowedTo-DsKwS5hs.js"; //#region src/isString.d.ts /** * A function that checks if the passed parameter is a string and narrows its type accordingly. * * @param data - The variable to check. * @returns True if the passed input is a string, false otherwise. * @signature * R.isString(data) * @example * R.isString('string') //=> true * R.isString(1) //=> false * @category Guard */ declare function isString<T>(data: T | string): data is NarrowedTo<T, string>; //#endregion export { isString }; //# sourceMappingURL=isString-Cnv-Vp-s.d.ts.map