mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: type design has changed now
This commit is contained in:
@@ -38,10 +38,9 @@
|
|||||||
|
|
||||||
## Types Guide
|
## Types Guide
|
||||||
|
|
||||||
- Must use snake case (according to Discord API).
|
- Must use camel case (same property name as in the docs just in camel case).
|
||||||
- Each field or property must be accompanied with a reasonable JSDoc comment
|
- Each field or property must be accompanied with a reasonable JSDoc comment
|
||||||
right above its type definition.
|
right above its type definition.
|
||||||
- The name of the type must be prefixed with `Discord`.
|
|
||||||
- Must be placed inside of the types module (in `src/types` directory).
|
- Must be placed inside of the types module (in `src/types` directory).
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@@ -61,6 +60,4 @@ export interface User {
|
|||||||
flags?: number;
|
flags?: number;
|
||||||
premiumType?: number;
|
premiumType?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DiscordUser = SnakeCasedPropertiesDeep<DiscordUserInternal>;
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user