diff --git a/index.d.ts b/index.d.ts index ff69d56..3d9d051 100644 --- a/index.d.ts +++ b/index.d.ts @@ -65,9 +65,9 @@ declare namespace tocbot { // Options are: "debounce" or "throttle" // when set auto , use debounce less than 333ms , other use throttle. // for ios browser can't use history.pushState() more than 100 times per 30 seconds reason - scrollHandlerType?: "auto" | "debounce" | "throttle" + scrollHandlerType?: "auto" | "debounce" | "throttle" // scrollHandler delay in ms. - scrollHandlerTimeout: number + scrollHandlerTimeout?: number // Timeout between events firing to make sure it's // not too rapid (for performance reasons). throttleTimeout?: number @@ -121,7 +121,7 @@ declare namespace tocbot { // assuming `disableTocScrollSync` is set to false. This allows for // scrolling an outer element (like a nav panel w/ search) containing the toc. // Please pass an element, not a selector here. - tocScrollingWrapper: null + tocScrollingWrapper?: null // Offset for the toc scroll (top) position when scrolling the page. // Only effective if `disableTocScrollSync` is false. tocScrollOffset?: number diff --git a/package-lock.json b/package-lock.json index a99fe61..45d8a58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "tocbot", - "version": "4.36.0", + "version": "4.36.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "tocbot", - "version": "4.36.0", + "version": "4.36.1", "license": "MIT", "devDependencies": { "@babel/cli": "^7.19.3", diff --git a/package.json b/package.json index a366ae9..00f5e2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tocbot", - "version": "4.36.0", + "version": "4.36.1", "description": "Generate a table of contents based on the heading structure of a html document.", "main": "./dist/tocbot.cjs", "module": "./index.js",