feat: BaseAPI의 launch()에 타입 지정

- APIRecoveryType이 명시
This commit is contained in:
Hide_D committed 2023-03-17 01:39:10 +09:00
1 parent 6b9cfe46a0
commit 4d340abdcf
77 files changed
+171 -89

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@
namespace sammo\API\Nation;
use sammo\DB;
use sammo\Enums\APIRecoveryType;
use sammo\Session;
use sammo\Validator;
@@ -99,7 +100,7 @@ class GetGeneralLog extends \sammo\BaseAPI
return $this->args['generalID'];
}
public function launch(Session $session, ?\DateTimeInterface $modifiedSince, ?string $reqEtag)
public function launch(Session $session, ?\DateTimeInterface $modifiedSince, ?string $reqEtag): null | string | array | APIRecoveryType
{
$userID = $session->userID;