Sha256: 7a7c3a30c1040c027c68951441667576bafeb769c1bbd1119dfe35f97d027506
Contents?: true
Size: 538 Bytes
Versions: 33
Compression:
Stored size: 538 Bytes
Contents
import {DelimiterCasedProperties} from './delimiter-cased-properties'; /** Convert object properties to snake case but not recursively. This can be useful when, for example, converting some API types from a different style. @see SnakeCase @see SnakeCasedPropertiesDeep @example ``` interface User { userId: number; userName: string; } const result: SnakeCasedProperties<User> = { user_id: 1, user_name: 'Tom', }; ``` @category Template Literals */ export type SnakeCasedProperties<Value> = DelimiterCasedProperties<Value, '_'>;
Version data entries
33 entries across 33 versions & 1 rubygems