aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/types
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-18 15:28:50 +0900
committernsfisis <nsfisis@gmail.com>2023-03-18 15:28:50 +0900
commit4ce1f674055ac1dd1c4864f366aac212f5643248 (patch)
tree296ce2d4c1d2b90346b9debddeafd920b7745e0d /nuldoc-src/types
parent9876a58d34a69b5951b80ee833d8dce5eaa4954e (diff)
downloadblog.nsfisis.dev-4ce1f674055ac1dd1c4864f366aac212f5643248.tar.gz
blog.nsfisis.dev-4ce1f674055ac1dd1c4864f366aac212f5643248.tar.zst
blog.nsfisis.dev-4ce1f674055ac1dd1c4864f366aac212f5643248.zip
refactor: provide type declaration of highlight.js
Diffstat (limited to 'nuldoc-src/types')
-rw-r--r--nuldoc-src/types/highlight-js.d.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuldoc-src/types/highlight-js.d.ts b/nuldoc-src/types/highlight-js.d.ts
new file mode 100644
index 0000000..312cd06
--- /dev/null
+++ b/nuldoc-src/types/highlight-js.d.ts
@@ -0,0 +1,6 @@
+declare module "highlight.js" {
+ function highlight(
+ code: string,
+ options: { language: string },
+ ): { value: string };
+}