mirror of
https://github.com/syuilo/ai.git
synced 2024-11-24 22:01:07 +00:00
Fix type
This commit is contained in:
parent
c03b549b12
commit
8848574df0
|
@ -7,13 +7,14 @@ import config from './config';
|
|||
import IModule from './module';
|
||||
import MessageLike from './message-like';
|
||||
import { FriendDoc } from './friend';
|
||||
import { User } from './misskey/user';
|
||||
const ReconnectingWebSocket = require('../node_modules/reconnecting-websocket/dist/reconnecting-websocket-cjs.js');
|
||||
|
||||
/**
|
||||
* 藍
|
||||
*/
|
||||
export default class 藍 {
|
||||
public account: any;
|
||||
public account: User;
|
||||
|
||||
/**
|
||||
* ホームストリーム
|
||||
|
@ -40,7 +41,7 @@ export default class 藍 {
|
|||
|
||||
public friends: loki.Collection<FriendDoc>;
|
||||
|
||||
constructor(account: any, modules: IModule[]) {
|
||||
constructor(account: User, modules: IModule[]) {
|
||||
this.account = account;
|
||||
this.modules = modules;
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ import * as request from 'request-promise-native';
|
|||
import Reversi, { Color } from 'misskey-reversi';
|
||||
import config from '../../config';
|
||||
import serifs from '../../serifs';
|
||||
import { User } from '../../misskey/user';
|
||||
|
||||
const db = {};
|
||||
|
||||
|
@ -25,7 +26,7 @@ const titles = [
|
|||
];
|
||||
|
||||
class Session {
|
||||
private account: any;
|
||||
private account: User;
|
||||
private game: any;
|
||||
private form: any;
|
||||
private o: Reversi;
|
||||
|
@ -41,7 +42,7 @@ class Session {
|
|||
*/
|
||||
private startedNote: any = null;
|
||||
|
||||
private get user(): any {
|
||||
private get user(): User {
|
||||
return this.game.user1Id == this.account.id ? this.game.user2 : this.game.user1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue