initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
30
node_modules/sql-highlight/lib/index.d.ts
generated
vendored
Normal file
30
node_modules/sql-highlight/lib/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
declare module 'sql-highlight' {
|
||||
export interface HighlightOptions {
|
||||
html?: boolean;
|
||||
htmlEscaper?: (str: string) => string;
|
||||
classPrefix?: string;
|
||||
colors?: {
|
||||
keyword: string;
|
||||
function: string;
|
||||
number: string;
|
||||
string: string;
|
||||
identifier: string;
|
||||
special: string;
|
||||
bracket: string;
|
||||
comment: string;
|
||||
clear: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface Segment {
|
||||
name: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export function getSegments(sqlString: string): Array<Segment>;
|
||||
export function highlight(
|
||||
sqlString: string,
|
||||
options?: HighlightOptions
|
||||
): string;
|
||||
export const DEFAULT_OPTIONS: HighlightOptions;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue