Type Alias: KeyFormat
KeyFormat =
"camel"|"kebab"|"pascal"|"snake"
Defined in: src/utils/keyFormat.ts:15
The key format for request serialization or response normalization.
Example
ts
import { createClient } from 'sorbus';
import { contract } from './contract';
const api = createClient(contract, '/api/v1', {
serializeKey: 'snake',
normalizeKey: 'camel',
});