parent
d2b3b4b9e7
commit
f0824b3b7a
4 changed files with 6254 additions and 6551 deletions
|
@ -2,6 +2,8 @@
|
|||
// getStateを介してステートを取得し、dispatchによって更新する
|
||||
// stateを直接編集できないようになっている
|
||||
|
||||
import {Log} from '../common/types/log';
|
||||
|
||||
/**
|
||||
* 初期値
|
||||
*/
|
||||
|
@ -37,12 +39,6 @@ export const dispatch = (mutation: Partial<State>) => {
|
|||
};
|
||||
};
|
||||
|
||||
export type Log = {
|
||||
text: string;
|
||||
level: 'error' | 'warn' | 'info';
|
||||
timestamp: Date;
|
||||
}
|
||||
|
||||
export const clearLog = () => {
|
||||
dispatch({ misshaiWorkerLog: [] });
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue