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

- APIRecoveryType이 명시
This commit is contained in:
2023-03-17 01:39:10 +09:00
parent 6b9cfe46a0
commit 4d340abdcf
77 changed files with 171 additions and 89 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ namespace sammo\API\Vote;
use DateTimeInterface;
use sammo\DB;
use sammo\DTO\VoteInfo;
use sammo\Enums\APIRecoveryType;
use sammo\General;
use sammo\Json;
use sammo\KVStorage;
@@ -42,7 +43,7 @@ class Vote extends \sammo\BaseAPI
return null;
}
function launch(Session $session, ?DateTimeInterface $modifiedSince, ?string $reqEtag)
function launch(Session $session, ?DateTimeInterface $modifiedSince, ?string $reqEtag): null | string | array | APIRecoveryType
{
$voteID = $this->args['voteID'];