Enable @typescript-eslint/explicit-function-return-type in /src (#9788)
* Enable `@typescript-eslint/explicit-member-accessibility` on /src * Prettier * Enable `@typescript-eslint/explicit-function-return-type` in /src * Fix types * tsc strict fixes * Delint * Fix test * Fix bad merge
This commit is contained in:
committed by
GitHub
parent
7a36ba0fde
commit
030b7e90bf
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { IPushRule } from "matrix-js-sdk/src/@types/PushRules";
|
||||
import { IPushRule, PushRuleAction } from "matrix-js-sdk/src/@types/PushRules";
|
||||
|
||||
import { StandardActions } from "./StandardActions";
|
||||
import { NotificationUtils } from "./NotificationUtils";
|
||||
@@ -47,7 +47,7 @@ export class PushRuleVectorState {
|
||||
*
|
||||
* @return [object] list of push-rule actions
|
||||
*/
|
||||
public static actionsFor(pushRuleVectorState: VectorState) {
|
||||
public static actionsFor(pushRuleVectorState: VectorState): PushRuleAction[] {
|
||||
if (pushRuleVectorState === VectorState.On) {
|
||||
return StandardActions.ACTION_NOTIFY;
|
||||
} else if (pushRuleVectorState === VectorState.Loud) {
|
||||
|
||||
Reference in New Issue
Block a user