@liveblocks/node 1.4.5 → 1.4.6-test1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -147,14 +147,14 @@ declare type CommentData = {
|
|
|
147
147
|
/**
|
|
148
148
|
* Represents a thread of comments.
|
|
149
149
|
*/
|
|
150
|
-
declare type ThreadData<
|
|
150
|
+
declare type ThreadData<TThreadMetadata extends BaseMetadata = never> = {
|
|
151
151
|
type: "thread";
|
|
152
152
|
id: string;
|
|
153
153
|
roomId: string;
|
|
154
154
|
createdAt: string;
|
|
155
155
|
updatedAt?: string;
|
|
156
156
|
comments: CommentData[];
|
|
157
|
-
metadata: [
|
|
157
|
+
metadata: [TThreadMetadata] extends [never] ? Record<string, never> : TThreadMetadata;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
declare const ALL_PERMISSIONS: readonly ["room:write", "room:read", "room:presence:write", "comments:write", "comments:read"];
|
package/dist/index.d.ts
CHANGED
|
@@ -147,14 +147,14 @@ declare type CommentData = {
|
|
|
147
147
|
/**
|
|
148
148
|
* Represents a thread of comments.
|
|
149
149
|
*/
|
|
150
|
-
declare type ThreadData<
|
|
150
|
+
declare type ThreadData<TThreadMetadata extends BaseMetadata = never> = {
|
|
151
151
|
type: "thread";
|
|
152
152
|
id: string;
|
|
153
153
|
roomId: string;
|
|
154
154
|
createdAt: string;
|
|
155
155
|
updatedAt?: string;
|
|
156
156
|
comments: CommentData[];
|
|
157
|
-
metadata: [
|
|
157
|
+
metadata: [TThreadMetadata] extends [never] ? Record<string, never> : TThreadMetadata;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
declare const ALL_PERMISSIONS: readonly ["room:write", "room:read", "room:presence:write", "comments:write", "comments:read"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/node",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6-test1",
|
|
4
4
|
"description": "A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"node-fetch": "^2.6.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@liveblocks/core": "1.4.
|
|
40
|
+
"@liveblocks/core": "1.4.6-test1",
|
|
41
41
|
"@liveblocks/eslint-config": "*",
|
|
42
42
|
"@liveblocks/jest-config": "*",
|
|
43
43
|
"@types/node": "^20.7.1",
|