mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor: remove dead code (#3337)
This commit is contained in:
1 parent
a19002652b
commit
93d1f8af46
1527 files changed
+21170
-73846
No files matched your search
@@ -3,12 +3,12 @@
|
||||
const SYNTHETIC_STATE_FLAG = '__fluxer_synth';
|
||||
const MAX_SYNTHETIC_DEPTH = 6;
|
||||
|
||||
export interface SyntheticHistoryState {
|
||||
interface SyntheticHistoryState {
|
||||
[SYNTHETIC_STATE_FLAG]: true;
|
||||
depth: number;
|
||||
}
|
||||
|
||||
export function isSyntheticHistoryState(state: unknown): state is SyntheticHistoryState {
|
||||
function isSyntheticHistoryState(state: unknown): state is SyntheticHistoryState {
|
||||
return (
|
||||
typeof state === 'object' && state !== null && (state as Record<string, unknown>)[SYNTHETIC_STATE_FLAG] === true
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user