# assertStringNotEmpty Source: https://smartassertions.dev/assertions/assertStringNotEmpty/ Index of every page: https://smartassertions.dev/llms.txt Assert that a string has at least one character, with type-narrowing. Note that this counts UTF-16 code units, not Unicode grapheme clusters. ## Usage ```ts import { assertStringNotEmpty } from "@kensio/smartass"; const value: unknown = "admin"; assertStringNotEmpty(value); // value is now narrowed to a non-empty string ``` ## Source Source file: [`src/assert/string-not-empty/string-not-empty.assert.ts`](https://github.com/KensioSoftware/smartass/blob/main/src/assert/string-not-empty/string-not-empty.assert.ts)