Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 49e8478

Browse files
Fix packagr errors
1 parent 5c87293 commit 49e8478

File tree

6 files changed

+433
-432
lines changed

6 files changed

+433
-432
lines changed

ng-package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
33
"lib": {
44
"entryFile": "index.ts"
5-
}
5+
},
6+
"whitelistedNonPeerDependencies": ["."]
67
}

src/app/modules/ionic-swing/interfaces/swing.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ export interface Card {
4646
* Unbinds all Hammer.Manager events.
4747
* Removes the listeners from the physics simulation.
4848
*
49-
* @return {undefined}
49+
* return {undefined}
5050
*/
5151
destroy(): void;
5252

5353
/**
5454
* Throws a card into the stack from an arbitrary position.
5555
*
56-
* @param {Number} fromX
57-
* @param {Number} fromY
58-
* @return {undefined}
56+
* param {Number} fromX
57+
* param {Number} fromY
58+
* return {undefined}
5959
*/
6060
throwIn(x: number, y: number): void;
6161

6262
/**
6363
* Throws a card out of the stack in the direction away from the original offset.
6464
*
65-
* @param {Number} fromX
66-
* @param {Number} fromY
67-
* @return {undefined}
65+
* param {Number} fromX
66+
* param {Number} fromY
67+
* return {undefined}
6868
*/
6969
throwOut(x: number, y: number): void;
7070

@@ -84,10 +84,10 @@ export interface StackConfig {
8484
*
8585
* Element is considered to be thrown out when throwOutConfidence is equal to 1.
8686
*
87-
* @param {Number} offset Distance from the dragStart.
88-
* @param {HTMLElement} element Element.
89-
* @param {Number} throwOutConfidence config.throwOutConfidence
90-
* @return {Boolean}
87+
* param {Number} offset Distance from the dragStart.
88+
* param {HTMLElement} element Element.
89+
* param {Number} throwOutConfidence config.throwOutConfidence
90+
* return {Boolean}
9191
*/
9292
isThrowOut?: (offset: number, element: HTMLElement, throwOutConfidence: number) => boolean;
9393

@@ -96,31 +96,31 @@ export interface StackConfig {
9696
*
9797
* Ration of the absolute distance from the original card position and element width.
9898
*
99-
* @param {Number} offsetX Distance from the dragStart.
100-
* @param {Number} offsetY Distance from the dragStart.
101-
* @param {HTMLElement} element Element.
102-
* @return {Number}
99+
* param {Number} offsetX Distance from the dragStart.
100+
* param {Number} offsetY Distance from the dragStart.
101+
* param {HTMLElement} element Element.
102+
* return {Number}
103103
*/
104104
throwOutConfidence?: (offsetX: number, offsetY: number, element: HTMLElement) => number;
105105

106106
/**
107107
* Calculates a distances at which the card is thrown out of the stack.
108108
*
109-
* @param {Number} min
110-
* @param {Number} max
111-
* @return {Number}
109+
* param {Number} min
110+
* param {Number} max
111+
* return {Number}
112112
*/
113113
throwOutDistance?: (min: number, max: number) => number;
114114

115115
/**
116116
* Calculates rotation based on the element x and y offset, element width and
117117
* maxRotation variables.
118118
*
119-
* @param {Number} x Horizontal offset from the startDrag.
120-
* @param {Number} y Vertical offset from the startDrag.
121-
* @param {HTMLElement} element Element.
122-
* @param {Number} maxRotation
123-
* @return {Number} Rotation angle expressed in degrees.
119+
* param {Number} x Horizontal offset from the startDrag.
120+
* param {Number} y Vertical offset from the startDrag.
121+
* param {HTMLElement} element Element.
122+
* param {Number} maxRotation
123+
* return {Number} Rotation angle expressed in degrees.
124124
*/
125125
rotation?: (x: number, y: number, element: HTMLElement, maxRotation: number) => number;
126126

@@ -129,11 +129,11 @@ export interface StackConfig {
129129
*
130130
* Invoked in the event of `dragmove` and every time the physics solver is triggered.
131131
*
132-
* @param {HTMLElement} element
133-
* @param {Number} x Horizontal offset from the startDrag.
134-
* @param {Number} y Vertical offset from the startDrag.
135-
* @param {Number} r
136-
* @return {undefined}
132+
* param {HTMLElement} element
133+
* param {Number} x Horizontal offset from the startDrag.
134+
* param {Number} y Vertical offset from the startDrag.
135+
* param {Number} r
136+
* return {undefined}
137137
*/
138138
transform?: (element: HTMLElement, x: number, y: number, r: number) => void;
139139
}

0 commit comments

Comments
 (0)