mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
refactor: follow array-type lint rule
This commit is contained in:
@@ -152,14 +152,14 @@ export interface PinterestPin {
|
||||
* .catch(err => console.error('Error loggin in', err));
|
||||
*
|
||||
* this.pinterest.getMyPins()
|
||||
* .then((pins: Array<PinterestPin>) => console.log(pins))
|
||||
* .then((pins: PinterestPin[]) => console.log(pins))
|
||||
* .catch(err => console.error(err));
|
||||
*
|
||||
* this.pinterest.getMe()
|
||||
* .then((user: PinterestUser) => console.log(user));
|
||||
*
|
||||
* this.pinterest.getMyBoards()
|
||||
* .then((boards: Array<PinterestBoard>) => console.log(boards));
|
||||
* .then((boards: PinterestBoard[]) => console.log(boards));
|
||||
*
|
||||
* ```
|
||||
* @interfaces
|
||||
@@ -192,7 +192,7 @@ export class Pinterest extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Logs the user in using their Pinterest account.
|
||||
* @param scopes {Array<string>} Array of scopes that you need access to. You can use Pinterest.SCOPES constant for convenience.
|
||||
* @param scopes {string[]} Array of scopes that you need access to. You can use Pinterest.SCOPES constant for convenience.
|
||||
* @returns {Promise<any>} The response object will contain the user's profile data, as well as the access token (if you need to use it elsewhere, example: send it to your server and perform actions on behalf of the user).
|
||||
*/
|
||||
@Cordova()
|
||||
@@ -216,12 +216,12 @@ export class Pinterest extends IonicNativePlugin {
|
||||
*
|
||||
* @param fields {string} Optional fields separated by comma
|
||||
* @param limit {number} Optional limit, defaults to 100, maximum is 100.
|
||||
* @returns {Promise<Array<PinterestPin>>}
|
||||
* @returns {Promise<PinterestPin[]>}
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyPins(fields?: string, limit?: number): Promise<Array<PinterestPin>> {
|
||||
getMyPins(fields?: string, limit?: number): Promise<PinterestPin[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -229,12 +229,12 @@ export class Pinterest extends IonicNativePlugin {
|
||||
*
|
||||
* @param fields {string} Optional fields separated by comma
|
||||
* @param limit {number} Optional limit, defaults to 100, maximum is 100.
|
||||
* @returns {Promise<Array<PinterestBoard>>}
|
||||
* @returns {Promise<PinterestBoard[]>}
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyBoards(fields?: string, limit?: number): Promise<Array<PinterestBoard>> {
|
||||
getMyBoards(fields?: string, limit?: number): Promise<PinterestBoard[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -242,12 +242,12 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* Get the authenticated user's likes.
|
||||
* @param fields {string} Optional fields separated by comma
|
||||
* @param limit {number} Optional limit, defaults to 100, maximum is 100.
|
||||
* @returns {Promise<Array<PinterestPin>>}
|
||||
* @returns {Promise<PinterestPin[]>}
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyLikes(fields?: string, limit?: number): Promise<Array<PinterestPin>> {
|
||||
getMyLikes(fields?: string, limit?: number): Promise<PinterestPin[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -255,12 +255,12 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* Get the authenticated user's followers.
|
||||
* @param fields {string} Optional fields separated by comma
|
||||
* @param limit {number} Optional limit, defaults to 100, maximum is 100.
|
||||
* @returns {Promise<Array<PinterestUser>>}
|
||||
* @returns {Promise<PinterestUser[]>}
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyFollowers(fields?: string, limit?: number): Promise<Array<PinterestUser>> {
|
||||
getMyFollowers(fields?: string, limit?: number): Promise<PinterestUser[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -268,12 +268,12 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* Get the authenticated user's followed boards.
|
||||
* @param fields {string} Optional fields separated by comma
|
||||
* @param limit {number} Optional limit, defaults to 100, maximum is 100.
|
||||
* @returns {Promise<Array<PinterestBoard>>}
|
||||
* @returns {Promise<PinterestBoard[]>}
|
||||
*/
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyFollowedBoards(fields?: string, limit?: number): Promise<Array<PinterestBoard>> {
|
||||
getMyFollowedBoards(fields?: string, limit?: number): Promise<PinterestBoard[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -323,13 +323,13 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* @param boardId {string} The ID of the board
|
||||
* @param fields {string} Optional fields separated by comma
|
||||
* @param limit {number} Optional limit, defaults to 100, maximum is 100.
|
||||
* @returns {Promise<Array<PinterestPin>>}
|
||||
* @returns {Promise<PinterestPin[]>}
|
||||
*/
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
getBoardPins(boardId: string, fields?: string, limit?: number): Promise<Array<PinterestPin>> {
|
||||
getBoardPins(boardId: string, fields?: string, limit?: number): Promise<PinterestPin[]> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user