Hyperlinkv0.8.0-beta.28

SchemaGetter

SchemaGetter.camelToSnakefunctioneffect/SchemaGetter.ts:906
<E extends string>(): Getter<string, E>

Converts a camelCase string to snake_case.

Details

  • Pure, delegates to String.camelToSnake.

Example (Converting camel case to snake case)

import { SchemaGetter } from "effect"

const toSnake = SchemaGetter.camelToSnake<string>()
export function camelToSnake<E extends string>(): Getter<string, E> {
  return transform(Str.camelToSnake)
}
Referenced by 1 symbols