refactor: replace with data source (#4447)

This commit is contained in:
Alex Yang
2023-09-21 12:31:17 -05:00
committed by GitHub
parent 98f6b3e685
commit d09f6fb7cc
8 changed files with 33 additions and 31 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { DebugLogger } from '@affine/debug';
import type { DatasourceDocAdapter } from '@affine/y-provider';
import type { DocDataSource } from '@affine/y-provider';
import type { Socket } from 'socket.io-client';
import { Manager } from 'socket.io-client';
import {
@@ -129,7 +129,7 @@ export const createAffineDataSource = (
socket.disconnect();
};
},
} satisfies DatasourceDocAdapter & { readonly socket: Socket };
} satisfies DocDataSource & { readonly socket: Socket };
};
function setupAffineAwareness(