Skip to content

Commit

Permalink
Fixed types and added fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ProFiLeR4100 committed Dec 27, 2023
1 parent cf5f8e0 commit 7c16595
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/types/chat.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export interface MessagePart {
modificator: MessagePartModificator;
type: Type;
content: [string, string, []] | string;
smallUrl?: string;
url?: string;
displayName?: string;
}

export enum MessagePartModificator {
Expand All @@ -28,7 +31,10 @@ export enum MessagePartModificator {
}

export enum Type {
Text = 'text'
Text = 'text',
Smile = 'smile',
Link = 'link',
Mention = 'mention'
}

export interface Extra {
Expand Down
6 changes: 4 additions & 2 deletions src/unofficial-vk-play-live-api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Import here Polyfills if needed. Recommended core-js (npm i -D core-js)
// import "core-js/fn/array.find"
// ...
// export * from './modules/stream/stream';
export * from './types/chat.types';
export * from './types/metadata.types';
export * from './types/playeroptions.types';
export * from './types/websocket.types';

import { StreamManager } from './modules/stream/stream';

Expand Down

0 comments on commit 7c16595

Please sign in to comment.