@dlghq/dialog-types
Advanced tools
Comparing version 1.2.0 to 1.2.1
16
index.js
@@ -40,5 +40,7 @@ /** | ||
export type PeerType = 'user' | 'group'; | ||
export type Peer = { | ||
id: number, | ||
type: 'user' | 'group', | ||
type: PeerType, | ||
key?: string | ||
@@ -187,4 +189,14 @@ }; | ||
export type MessageMedia = MessageMediaImage | MessageMediaWebsite; | ||
export type MessageMediaAudio = { | ||
type: 'audio', | ||
content: { | ||
fileUrl: string, | ||
fileSize: number, | ||
mimeType: string, | ||
duration: number | ||
} | ||
}; | ||
export type MessageMedia = MessageMediaImage | MessageMediaWebsite | MessageMediaAudio; | ||
export type MessageContentText = { | ||
@@ -191,0 +203,0 @@ type: 'text', |
{ | ||
"name": "@dlghq/dialog-types", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Flow types for Dialog projects", | ||
@@ -34,7 +34,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@dlghq/babel-preset-dialog": "^2.2.0", | ||
"@dlghq/eslint-config-dialog": "1.7.0", | ||
"eslint": "3.5.0", | ||
"jest-cli": "^15.1.1" | ||
"@dlghq/babel-preset-dialog": "2.2.0", | ||
"@dlghq/eslint-config-dialog": "1.9.0", | ||
"eslint": "3.7.0", | ||
"jest-cli": "15.1.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18658
336