File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 63
63
"semantic-release" : " 15.9.17" ,
64
64
"tslint" : " 5.11.0" ,
65
65
"tslint-config-prettier" : " 1.15.0" ,
66
- "typescript" : " 3.0.3 "
66
+ "typescript" : " 3.1.1 "
67
67
},
68
68
"keywords" : [
69
69
" behavior-smooth" ,
Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ function scrollIntoView<T>(
64
64
function scrollIntoView ( target : Element , options ?: Options | boolean ) : void
65
65
function scrollIntoView < T > ( target : Element , options ?: Options < T > | boolean ) {
66
66
// Browsers treats targets that aren't in the dom as a no-op
67
- const scrollingElement = document . scrollingElement || document . documentElement
67
+ const scrollingElement = ( document . scrollingElement ||
68
+ document . documentElement ) as Element
68
69
const targetIsDetached =
69
70
target !== scrollingElement && ! scrollingElement . contains ( target )
70
71
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface Options {
17
17
18
18
// Custom behavior, not in any spec
19
19
export type CustomScrollBoundaryCallback = ( parent : Element ) => boolean
20
- export type CustomScrollBoundary = Element | CustomScrollBoundaryCallback
20
+ export type CustomScrollBoundary = Element | CustomScrollBoundaryCallback | null
21
21
export interface CustomScrollAction {
22
22
el : Element
23
23
top : number
Original file line number Diff line number Diff line change @@ -6552,10 +6552,10 @@ typescript-compiler@^1.4.1-2:
6552
6552
resolved "https://registry.yarnpkg.com/typescript-compiler/-/typescript-compiler-1.4.1-2.tgz#ba4f7db22d91534a1929d90009dce161eb72fd3f"
6553
6553
integrity sha1-uk99si2RU0oZKdkACdzhYety/T8=
6554
6554
6555
- typescript@3.0.3 :
6556
- version "3.0.3 "
6557
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.3 .tgz#4853b3e275ecdaa27f78fda46dc273a7eb7fc1c8 "
6558
- integrity sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg ==
6555
+ typescript@3.1.1 :
6556
+ version "3.1.1 "
6557
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.1 .tgz#3362ba9dd1e482ebb2355b02dfe8bcd19a2c7c96 "
6558
+ integrity sha512-Veu0w4dTc/9wlWNf2jeRInNodKlcdLgemvPsrNpfu5Pq39sgfFjvIIgTsvUHCoLBnMhPoUA+tFxsXjU6VexVRQ ==
6559
6559
6560
6560
typescript@~2.4.2 :
6561
6561
version "2.4.2"
You can’t perform that action at this time.
0 commit comments