Variable userConst

user: {
    properties: {
        chatColor: {
            pattern: "^[0-9A-Fa-f]{6}$";
            type: "string";
        };
        email: {
            pattern: "^.{1,30}@.{1,30}\\..{1,30}$";
            type: "string";
        };
        gameStats: {
            properties: {
                current: {
                    properties: {
                        corners: {
                            minimum: 0;
                            type: "number";
                        };
                        edges: {
                            minimum: 0;
                            type: "number";
                        };
                        time: {
                            minimum: 0;
                            type: "number";
                        };
                    };
                    required: readonly ["time", "edges", "corners"];
                };
                highest: {
                    properties: {
                        corners: {
                            minimum: 0;
                            type: "number";
                        };
                        edges: {
                            minimum: 0;
                            type: "number";
                        };
                        time: {
                            minimum: 0;
                            type: "number";
                        };
                    };
                    required: readonly ["time", "edges", "corners"];
                };
                sessionCount: {
                    minimum: 0;
                    type: "number";
                };
                total: {
                    properties: {
                        corners: {
                            minimum: 0;
                            type: "number";
                        };
                        edges: {
                            minimum: 0;
                            type: "number";
                        };
                        time: {
                            minimum: 0;
                            type: "number";
                        };
                    };
                    required: readonly ["time", "edges", "corners"];
                };
            };
            required: readonly ["total", "current", "highest", "sessionCount"];
        };
        id: {
            pattern: "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$";
            type: "string";
        };
        joined: {};
        lastLogin: {
            minimum: 0;
            type: "number";
        };
        live: {
            type: "boolean";
        };
        passhash: {
            type: "string";
        };
        username: {
            pattern: "^[a-zA-Z0-9$]{2,20}$";
            type: "string";
        };
    };
    required: readonly ["username", "email", "passhash", "gameStats", "id", "live", "chatColor", "joined", "lastLogin"];
    type: "object";
} = ...

Type declaration

  • Readonly properties: {
        chatColor: {
            pattern: "^[0-9A-Fa-f]{6}$";
            type: "string";
        };
        email: {
            pattern: "^.{1,30}@.{1,30}\\..{1,30}$";
            type: "string";
        };
        gameStats: {
            properties: {
                current: {
                    properties: {
                        corners: {
                            minimum: 0;
                            type: "number";
                        };
                        edges: {
                            minimum: 0;
                            type: "number";
                        };
                        time: {
                            minimum: 0;
                            type: "number";
                        };
                    };
                    required: readonly ["time", "edges", "corners"];
                };
                highest: {
                    properties: {
                        corners: {
                            minimum: 0;
                            type: "number";
                        };
                        edges: {
                            minimum: 0;
                            type: "number";
                        };
                        time: {
                            minimum: 0;
                            type: "number";
                        };
                    };
                    required: readonly ["time", "edges", "corners"];
                };
                sessionCount: {
                    minimum: 0;
                    type: "number";
                };
                total: {
                    properties: {
                        corners: {
                            minimum: 0;
                            type: "number";
                        };
                        edges: {
                            minimum: 0;
                            type: "number";
                        };
                        time: {
                            minimum: 0;
                            type: "number";
                        };
                    };
                    required: readonly ["time", "edges", "corners"];
                };
            };
            required: readonly ["total", "current", "highest", "sessionCount"];
        };
        id: {
            pattern: "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$";
            type: "string";
        };
        joined: {};
        lastLogin: {
            minimum: 0;
            type: "number";
        };
        live: {
            type: "boolean";
        };
        passhash: {
            type: "string";
        };
        username: {
            pattern: "^[a-zA-Z0-9$]{2,20}$";
            type: "string";
        };
    }
    • Readonly chatColor: {
          pattern: "^[0-9A-Fa-f]{6}$";
          type: "string";
      }
      • Readonly pattern: "^[0-9A-Fa-f]{6}$"
      • Readonly type: "string"
    • email: {
          pattern: "^.{1,30}@.{1,30}\\..{1,30}$";
          type: "string";
      }
      • Readonly pattern: "^.{1,30}@.{1,30}\\..{1,30}$"
      • Readonly type: "string"
    • gameStats: {
          properties: {
              current: {
                  properties: {
                      corners: {
                          minimum: 0;
                          type: "number";
                      };
                      edges: {
                          minimum: 0;
                          type: "number";
                      };
                      time: {
                          minimum: 0;
                          type: "number";
                      };
                  };
                  required: readonly ["time", "edges", "corners"];
              };
              highest: {
                  properties: {
                      corners: {
                          minimum: 0;
                          type: "number";
                      };
                      edges: {
                          minimum: 0;
                          type: "number";
                      };
                      time: {
                          minimum: 0;
                          type: "number";
                      };
                  };
                  required: readonly ["time", "edges", "corners"];
              };
              sessionCount: {
                  minimum: 0;
                  type: "number";
              };
              total: {
                  properties: {
                      corners: {
                          minimum: 0;
                          type: "number";
                      };
                      edges: {
                          minimum: 0;
                          type: "number";
                      };
                      time: {
                          minimum: 0;
                          type: "number";
                      };
                  };
                  required: readonly ["time", "edges", "corners"];
              };
          };
          required: readonly ["total", "current", "highest", "sessionCount"];
      }
      • Readonly properties: {
            current: {
                properties: {
                    corners: {
                        minimum: 0;
                        type: "number";
                    };
                    edges: {
                        minimum: 0;
                        type: "number";
                    };
                    time: {
                        minimum: 0;
                        type: "number";
                    };
                };
                required: readonly ["time", "edges", "corners"];
            };
            highest: {
                properties: {
                    corners: {
                        minimum: 0;
                        type: "number";
                    };
                    edges: {
                        minimum: 0;
                        type: "number";
                    };
                    time: {
                        minimum: 0;
                        type: "number";
                    };
                };
                required: readonly ["time", "edges", "corners"];
            };
            sessionCount: {
                minimum: 0;
                type: "number";
            };
            total: {
                properties: {
                    corners: {
                        minimum: 0;
                        type: "number";
                    };
                    edges: {
                        minimum: 0;
                        type: "number";
                    };
                    time: {
                        minimum: 0;
                        type: "number";
                    };
                };
                required: readonly ["time", "edges", "corners"];
            };
        }
        • Readonly current: {
              properties: {
                  corners: {
                      minimum: 0;
                      type: "number";
                  };
                  edges: {
                      minimum: 0;
                      type: "number";
                  };
                  time: {
                      minimum: 0;
                      type: "number";
                  };
              };
              required: readonly ["time", "edges", "corners"];
          }
          • Readonly properties: {
                corners: {
                    minimum: 0;
                    type: "number";
                };
                edges: {
                    minimum: 0;
                    type: "number";
                };
                time: {
                    minimum: 0;
                    type: "number";
                };
            }
            • Readonly corners: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
            • Readonly edges: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
            • Readonly time: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
          • Readonly required: readonly ["time", "edges", "corners"]
        • Readonly highest: {
              properties: {
                  corners: {
                      minimum: 0;
                      type: "number";
                  };
                  edges: {
                      minimum: 0;
                      type: "number";
                  };
                  time: {
                      minimum: 0;
                      type: "number";
                  };
              };
              required: readonly ["time", "edges", "corners"];
          }
          • Readonly properties: {
                corners: {
                    minimum: 0;
                    type: "number";
                };
                edges: {
                    minimum: 0;
                    type: "number";
                };
                time: {
                    minimum: 0;
                    type: "number";
                };
            }
            • Readonly corners: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
            • Readonly edges: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
            • Readonly time: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
          • Readonly required: readonly ["time", "edges", "corners"]
        • Readonly sessionCount: {
              minimum: 0;
              type: "number";
          }
          • Readonly minimum: 0
          • Readonly type: "number"
        • Readonly total: {
              properties: {
                  corners: {
                      minimum: 0;
                      type: "number";
                  };
                  edges: {
                      minimum: 0;
                      type: "number";
                  };
                  time: {
                      minimum: 0;
                      type: "number";
                  };
              };
              required: readonly ["time", "edges", "corners"];
          }
          • Readonly properties: {
                corners: {
                    minimum: 0;
                    type: "number";
                };
                edges: {
                    minimum: 0;
                    type: "number";
                };
                time: {
                    minimum: 0;
                    type: "number";
                };
            }
            • Readonly corners: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
            • Readonly edges: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
            • Readonly time: {
                  minimum: 0;
                  type: "number";
              }
              • Readonly minimum: 0
              • Readonly type: "number"
          • Readonly required: readonly ["time", "edges", "corners"]
      • Readonly required: readonly ["total", "current", "highest", "sessionCount"]
    • Readonly id: {
          pattern: "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$";
          type: "string";
      }
      • Readonly pattern: "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$"
      • Readonly type: "string"
    • Readonly joined: {}
      • Readonly lastLogin: {
            minimum: 0;
            type: "number";
        }
        • Readonly minimum: 0
        • Readonly type: "number"
      • Readonly live: {
            type: "boolean";
        }
        • Readonly type: "boolean"
      • Readonly passhash: {
            type: "string";
        }
        • Readonly type: "string"
      • username: {
            pattern: "^[a-zA-Z0-9$]{2,20}$";
            type: "string";
        }
        • Readonly pattern: "^[a-zA-Z0-9$]{2,20}$"
        • Readonly type: "string"
    • Readonly required: readonly ["username", "email", "passhash", "gameStats", "id", "live", "chatColor", "joined", "lastLogin"]
    • Readonly type: "object"

    Generated using TypeDoc