summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/cafy-id.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/misc/cafy-id.ts b/src/misc/cafy-id.ts
index eb5822a7d4..bc8fe4ea2b 100644
--- a/src/misc/cafy-id.ts
+++ b/src/misc/cafy-id.ts
@@ -26,6 +26,8 @@ export type ObjectId = mongo.ObjectID;
* ID
*/
export default class ID<Maybe = string> extends Context<string | Maybe> {
+ public readonly name = 'ID';
+
constructor(optional = false, nullable = false) {
super(optional, nullable);
@@ -38,7 +40,7 @@ export default class ID<Maybe = string> extends Context<string | Maybe> {
}
public getType() {
- return super.getType('string');
+ return super.getType('String');
}
public makeOptional(): ID<undefined> {