types(util): add case utility types (#683)

* types(util): add case utility types

* Rename *ID to *Id
This commit is contained in:
ayntee
2021-03-23 19:04:46 +04:00
committed by GitHub
parent 6ff4654686
commit 10cb9d7eb9
10 changed files with 161 additions and 48 deletions
+2 -2
View File
@@ -66,9 +66,9 @@ Examples of bad PR title:
Example:
```ts
// Discordeno has utility type Camelize<T>, where T is an interface with keys in snake case.
// Discordeno has utility type CamelCaseProps<T>, where T is an interface with keys in snake case.
// It can be used to "generate" corresponding "Discordeno type" from "Discord type".
// Example: export type BanOptions = Camelize<DiscordBanOptions>
// Example: export type BanOptions = CamelCaseProps<DiscordBanOptions>
export interface EditMemberOptions {
/** Value to set users nickname to. Requires MANAGE_NICKNAMES permission. */