belgattitude/httpx

View on GitHub
packages/assert/docs/api/string.asserts/functions/assertStringNonEmpty.md

Summary

Maintainability
Test Coverage
[**@httpx/assert v0.12.4**](../../README.md) • **Docs**

***

[@httpx/assert v0.12.4](../../README.md) / [string.asserts](../README.md) / assertStringNonEmpty

# Function: assertStringNonEmpty()

> **assertStringNonEmpty**(`v`, `msgOrErrorFactory`?): `asserts v is StringNonEmpty`

Assert a value is a non-empty string (trims the string by default)

## Parameters

• **v**: `unknown`

• **msgOrErrorFactory?**: `MsgOrErrorFactory`

## Returns

`asserts v is StringNonEmpty`

## Throws

TypeError

## Defined in

[string.asserts.ts:16](https://github.com/belgattitude/httpx/blob/acde85be3548fccd6cc1a311d7f8d4419e2b6ce0/packages/assert/src/string.asserts.ts#L16)