Skip to content

Commit 29e3aba

Browse files
committed
refactor: move hexo global
1 parent a2ec1eb commit 29e3aba

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { jsfiddle } from './jsfiddle';
1111
import { rssreader } from './rssreader';
1212
import { registerHexo, url_for } from './utils';
1313

14+
declare global {
15+
const hexo: import('hexo');
16+
}
17+
1418
if (typeof hexo !== 'undefined') {
1519
// register hexo for utils
1620
registerHexo(hexo as any);

typings/globals.d.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
declare global {
2-
const hexo: import('hexo');
3-
}

0 commit comments

Comments
 (0)