Skip to content

Commit a56b768

Browse files
clevalilixifan
andauthored
Feat/type opt (#384)
* feat: types opt * 4.36.1 * feat: build and commit dist --------- Co-authored-by: lixifan <lixifan@bytedance.com>
1 parent 05cbe8a commit a56b768

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎index.d.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ declare namespace tocbot {
6565
// Options are: "debounce" or "throttle"
6666
// when set auto , use debounce less than 333ms , other use throttle.
6767
// for ios browser can't use history.pushState() more than 100 times per 30 seconds reason
68-
scrollHandlerType?: "auto" | "debounce" | "throttle"
68+
scrollHandlerType?: "auto" | "debounce" | "throttle"
6969
// scrollHandler delay in ms.
70-
scrollHandlerTimeout: number
70+
scrollHandlerTimeout?: number
7171
// Timeout between events firing to make sure it's
7272
// not too rapid (for performance reasons).
7373
throttleTimeout?: number
@@ -121,7 +121,7 @@ declare namespace tocbot {
121121
// assuming `disableTocScrollSync` is set to false. This allows for
122122
// scrolling an outer element (like a nav panel w/ search) containing the toc.
123123
// Please pass an element, not a selector here.
124-
tocScrollingWrapper: null
124+
tocScrollingWrapper?: null
125125
// Offset for the toc scroll (top) position when scrolling the page.
126126
// Only effective if `disableTocScrollSync` is false.
127127
tocScrollOffset?: number

‎package-lock.json‎

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

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tocbot",
3-
"version": "4.36.0",
3+
"version": "4.36.1",
44
"description": "Generate a table of contents based on the heading structure of a html document.",
55
"main": "./dist/tocbot.cjs",
66
"module": "./index.js",

0 commit comments

Comments
 (0)