Fix type annotation

This commit is contained in:
syuilo 2018-04-06 19:26:17 +09:00
parent 0ecbafe5eb
commit 574e3b0bfd

View File

@ -3,9 +3,9 @@ import performDeleteActivity from './delete';
import follow from './follow';
import undo from './undo';
import { IObject } from '../type';
import { IUser } from '../../../models/user';
import { IRemoteUser } from '../../../models/user';
export default async (actor: IUser, activity: IObject): Promise<void> => {
export default async (actor: IRemoteUser, activity: IObject): Promise<void> => {
switch (activity.type) {
case 'Create':
await create(actor, activity);