Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 75d11ec

Browse files
feat: interaction types (#1564)
1 parent 240785e commit 75d11ec

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

utils/editor/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export * from './models/data/template';
1111
export * from './models/data/token';
1212
export * from './models/data/user';
1313
export * from './models/data/data';
14+
export * from './models/data/interaction';
1415

1516
export * from './models/storage/storage';
1617

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type {DataRecord} from './data';
2+
3+
export interface LikeData {
4+
like: boolean;
5+
6+
created_at?: Date | number | BigInt;
7+
updated_at?: Date | number | BigInt;
8+
}
9+
10+
export type Interaction = DataRecord<LikeData> & {author_id: string};

0 commit comments

Comments
 (0)