Feat: server-infoエンドポイント / Fix: logger.tsを追跡対象に / Feat: lynqchat-jsを利用可能に / Fix: lynqchat-jsに不足していたエンドポイントを追加
This commit is contained in:
@@ -5,9 +5,9 @@ type ErrorType<R = unknown> = {
|
||||
reason?: R,
|
||||
}
|
||||
|
||||
type ErrorBase<E extends ErrorType<any>> = {
|
||||
type ErrorBase<E extends ErrorType<any> = ErrorType> = {
|
||||
success: false;
|
||||
error: E;
|
||||
}
|
||||
};
|
||||
|
||||
export default ErrorBase;
|
||||
@@ -1,3 +1,5 @@
|
||||
import ErrorBase from ".";
|
||||
|
||||
export type InputError = ErrorBase<{
|
||||
bad: "client";
|
||||
code: "input_wrong";
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
type YetInitializationError = ErrorBase<{
|
||||
bad: "client";
|
||||
code: "yet_initialization";
|
||||
message: "初期設定が行われていません。";
|
||||
}>;
|
||||
|
||||
export default YetInitializationError;
|
||||
Reference in New Issue
Block a user