Skip to content

Commit fee59ef

Browse files
committed
(chore) fix TypeScript types
1 parent c0b2ab7 commit fee59ef

File tree

4 files changed

+225
-229
lines changed

4 files changed

+225
-229
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
ecmaVersion: 2015,
1313
sourceType: "module"
1414
},
15-
// parser: '@typescript-eslint/parser',
15+
parser: '@typescript-eslint/parser',
1616
plugins: [
1717
"@typescript-eslint"
1818
],

src/core.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// commented out
2+
// <reference path="../types/index.d.ts" />
3+
4+
import hljs from "highlight.js";
5+
export default hljs;
6+

tools/build_node.js

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ async function buildNode(options) {
6565
install("./LICENSE", "LICENSE");
6666
install("./README.md", "README.md");
6767
install("./types/index.d.ts", "types/index.d.ts");
68+
install("./src/core.d.ts","lib/core.d.ts");
6869

6970
log("Writing styles.");
7071
const styles = await fs.readdir("./src/styles/");

0 commit comments

Comments
 (0)