mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Framework Rewrite
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = class ArgumentType {
|
||||
constructor(id) {
|
||||
this.id = id.toLowerCase();
|
||||
}
|
||||
|
||||
validate(val) {
|
||||
return Boolean(val);
|
||||
}
|
||||
|
||||
parse(val) {
|
||||
return val;
|
||||
}
|
||||
|
||||
isEmpty(val) {
|
||||
return !val;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user