Skip to content

Commit

Permalink
chore: Delete JSDoc anotation
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Jul 30, 2019
1 parent b6b6351 commit b4c86a2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 44 deletions.
2 changes: 0 additions & 2 deletions packages/vk-io/src/structures/attachments/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ export default class Attachment {

/**
* Returns data for JSON
*
* @return {Object}
*/
public toJSON(): object {
return this[inspectCustomData]();
Expand Down
3 changes: 0 additions & 3 deletions packages/vk-io/src/structures/attachments/audio-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ export default class AudioMessageAttachment extends Attachment {

/**
* Constructor
*
* @param {Object} payload
* @param {VK} vk
*/
public constructor(payload, vk: VK) {
super(AUDIO_MESSAGE, payload.owner_id, payload.id, payload.access_key);
Expand Down
14 changes: 0 additions & 14 deletions packages/vk-io/src/structures/attachments/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,26 +184,20 @@ export default class DocumentAttachment extends Attachment {

/**
* Returns the date when this document was created
*
* @return {?number}
*/
public get createdAt(): number | null {
return this.payload.date || null;
}

/**
* Returns the type identifier (1~8)
*
* @return {?number}
*/
public get typeId(): number | null {
return this.payload.type || null;
}

/**
* Returns the type name
*
* @return {?string}
*/
public get typeName(): string | null {
if (!this.$filled) {
Expand All @@ -215,8 +209,6 @@ export default class DocumentAttachment extends Attachment {

/**
* Returns the size in bytes
*
* @return {?number}
*/
public get size(): number | null {
if (!this.$filled) {
Expand All @@ -228,26 +220,20 @@ export default class DocumentAttachment extends Attachment {

/**
* Returns the extension
*
* @return {?string}
*/
public get extension(): string | null {
return this.payload.ext || null;
}

/**
* Returns the URL of the document
*
* @return {?string}
*/
public get url(): string | null {
return this.payload.url || null;
}

/**
* Returns the info to preview
*
* @return {?Object}
*/
public get preview(): object | null {
return this.payload.preview || null;
Expand Down
5 changes: 0 additions & 5 deletions packages/vk-io/src/structures/attachments/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ const attachmentsTypes = {

/**
* Transform raw attachments to wrapper
*
* @param {Object[]} attachments
* @param {VK} vk
*
* @return {Object[]}
*/
// @ts-ignore
// eslint-disable-next-line import/prefer-default-export, @typescript-eslint/no-explicit-any
Expand Down
20 changes: 0 additions & 20 deletions packages/vk-io/src/structures/attachments/photo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ export default class PhotoAttachment extends Attachment {

/**
* Load attachment payload
*
* @return {Promise}
*/
public async loadAttachmentPayload(): Promise<void> {
if (this.$filled) {
Expand All @@ -76,53 +74,41 @@ export default class PhotoAttachment extends Attachment {

/**
* Returns the ID of the user who uploaded the image
*
* @return {?number}
*/
public get userId(): number | null {
return this.payload.user_id || null;
}

/**
* Returns the ID of the album
*
* @return {?number}
*/
public get albumId(): number | null {
return this.payload.album_id || null;
}

/**
* Returns the photo text
*
* @return {?string}
*/
public get text(): string | null {
return this.payload.text || null;
}

/**
* Returns the date when this photo was created
*
* @return {?number}
*/
public get createdAt(): number | null {
return this.payload.date || null;
}

/**
* Returns the photo height
*
* @return {?number}
*/
public get height(): number | null {
return this.payload.height || null;
}

/**
* Returns the photo width
*
* @return {?number}
*/
public get width(): number | null {
return this.payload.width || null;
Expand All @@ -131,8 +117,6 @@ export default class PhotoAttachment extends Attachment {
/**
* Returns the URL of a small photo
* (130 or 75)
*
* @return {?string}
*/
public get smallPhoto(): string | null {
if (!this.$filled) {
Expand All @@ -147,8 +131,6 @@ export default class PhotoAttachment extends Attachment {
/**
* Returns the URL of a medium photo
* (807 or 604 or less)
*
* @return {?string}
*/
public get mediumPhoto(): string | null {
if (!this.$filled) {
Expand All @@ -163,8 +145,6 @@ export default class PhotoAttachment extends Attachment {
/**
* Returns the URL of a large photo
* (2560 or 1280 or less)
*
* @return {?string}
*/
public get largePhoto(): string | null {
if (!this.$filled) {
Expand Down

0 comments on commit b4c86a2

Please sign in to comment.