We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14546c commit 2148b8aCopy full SHA for 2148b8a
index.d.ts
@@ -0,0 +1,6 @@
1
+/**
2
+ * Smooth scrolling onClick event handler
3
+ * @param {string} selector argument will be passed to `querySelector`, usually an HTML id
4
+ */
5
+declare const scrollTo: (selector: string) => void;
6
+export default scrollTo;
package.json
@@ -32,5 +32,6 @@
32
"@babel/core": "^7.6.0",
33
"babel-preset-gatsby-package": "^0.2.4",
34
"cross-env": "^5.2.1"
35
- }
+ },
36
+ "types": "index.d.ts"
37
}
0 commit comments