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 329e86f commit 35b79ceCopy full SHA for 35b79ce
lib/index.d.ts
@@ -0,0 +1,17 @@
1
+declare module 'sql-highlight' {
2
+ export interface HighlightOptions {
3
+ html?: boolean;
4
+ classPrefix?: string;
5
+ colors?: {
6
+ keyword: string;
7
+ function: string;
8
+ number: string;
9
+ string: string;
10
+ special: string;
11
+ bracket: string;
12
+ clear: string;
13
+ };
14
+ }
15
+
16
+ export function highlight(sqlString: string, options?: HighlightOptions): string;
17
+}
package.json
@@ -3,6 +3,7 @@
"version": "4.0.1",
"description": "A simple and lightweight syntax highlighting library for SQL",
"main": "lib/index.js",
+ "types": "./lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/scriptcoded/sql-highlight.git"
0 commit comments