API reference › @evolu/common › Leancase › LeancasedString

type LeancasedString = string & import("./Brand.ts").Brand<"Leancased">;

Defined in: packages/common/src/Leancase.ts:115

Experimental

A String in leancase.

This Type validates that a string is already in leancase; it does not modify the value. Use leancase to convert a string.

Example

import { assertErr, assertOk, LeancasedString } from "@evolu/common";

assertOk(LeancasedString.fromUnknown("hello. world"), "hello. world");
assertErr(LeancasedString.fromUnknown("Hello. World."));