π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: type errors
DarkPhoenix2704f682da68a207
diff --git a/packages/nc-gui/composables/useInfiniteData.ts b/packages/nc-gui/composables/useInfiniteData.tsindex 779ca2a270..a3e2e27d75 100644--- a/packages/nc-gui/composables/useInfiniteData.ts+++ b/packages/nc-gui/composables/useInfiniteData.ts@@ -2080,7 +2080,7 @@ export function useInfiniteData(args: {}// If no order is found, append to the end- const newRowIndex = dataCache.cachedRows.value.size+ const newRowIndex = dataCache.totalRows.valuedataCache.cachedRows.value.set(newRowIndex, {row: payload,oldRow: {},diff --git a/packages/nocodb-sdk/src/lib/realtime/index.ts b/packages/nocodb-sdk/src/lib/realtime/index.tsindex a795f0a4f7..d0680317df 100644--- a/packages/nocodb-sdk/src/lib/realtime/index.ts+++ b/packages/nocodb-sdk/src/lib/realtime/index.ts@@ -1,4 +1,4 @@-import { UserType } from "~/lib/Api";+import { UserType } from '~/lib/Api';export enum EventType {HANDSHAKE = 'handshake',@@ -33,10 +33,10 @@ export interface ConnectionErrorPayload extends BaseSocketPayload {}export interface DataPayload extends BaseSocketPayload {- id: string- action: 'add' | 'update' | 'delete'- payload: Record<string, any>- before?: string+ id: string;+ action: 'add' | 'update' | 'delete' | 'reorder';+ payload: Record<string, any>;+ before?: string;}// Union type for all socket event payloads@@ -55,4 +55,3 @@ export type SocketEventPayloadMap = {// Helper type to get payload type for a specific eventexport type PayloadForEvent<T extends EventType> = SocketEventPayloadMap[T];-diff --git a/packages/nocodb/src/socket/NocoSocket.ts b/packages/nocodb/src/socket/NocoSocket.tsnew file mode 100644index 0000000000..2a19e32131--- /dev/null+++ b/packages/nocodb/src/socket/NocoSocket.ts@@ -0,0 +1,7 @@+export default class NocoSocket {+ public static ioServer;++ public static handleConnection(..._args: unknown[]) {}++ public static broadcastDataEvent(..._args: unknown[]) {}+}