Skip to content

Commit 0a5ba9b

Browse files
committed
Fixed typings for viewport
1 parent 383ed6a commit 0a5ba9b

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

package-lock.json

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/adapter/viewport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export class Viewport {
222222
public between(
223223
first: string, last: string,
224224
cb: ViewportCallback
225-
): Promise<void> | void {
225+
): void | Promise<void> {
226226
const [initial, ...rest] = range(this.config.breakpoints, first, last)
227227

228228
/* Apply breakpoint and execute callback */

0 commit comments

Comments
 (0)