UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

24 lines 481 B
//#region src/string/isString.d.ts /** * `isString(target)` * * Checks if `target` is a string. * * ```ts * isString("hello"); // true * isString(123); // false * isString(null); // false * ``` * * ```ts * pipe("hello", isString()); // true * pipe(123, isString()); // false * pipe(null, isString()); // false * ``` */ declare const isString: { (): (target: unknown) => target is string; (target: unknown): target is string; }; //#endregion export { isString };