Files
NapCatQQ/.pnpm-store/v3/files/8c/db5c3aa11e8e50fa091a9bfa238c507c139b973e066d89c9042313431799e51556ba9f20620293f335425556609c6322a2b14cdabc45a0c850cae689499e40
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

27 lines
538 B
Plaintext

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, '_'>;