25 lines
902 B
TypeScript
25 lines
902 B
TypeScript
import { ParamItems } from './formatter/Params.js';
|
|
import { ParamTypes } from './lexer/TokenizerOptions.js';
|
|
export type IndentStyle = 'standard' | 'tabularLeft' | 'tabularRight';
|
|
export type KeywordCase = 'preserve' | 'upper' | 'lower';
|
|
export type IdentifierCase = KeywordCase;
|
|
export type DataTypeCase = KeywordCase;
|
|
export type FunctionCase = KeywordCase;
|
|
export type LogicalOperatorNewline = 'before' | 'after';
|
|
export interface FormatOptions {
|
|
tabWidth: number;
|
|
useTabs: boolean;
|
|
keywordCase: KeywordCase;
|
|
identifierCase: IdentifierCase;
|
|
dataTypeCase: DataTypeCase;
|
|
functionCase: FunctionCase;
|
|
indentStyle: IndentStyle;
|
|
logicalOperatorNewline: LogicalOperatorNewline;
|
|
expressionWidth: number;
|
|
linesBetweenQueries: number;
|
|
denseOperators: boolean;
|
|
newlineBeforeSemicolon: boolean;
|
|
params?: ParamItems | string[];
|
|
paramTypes?: ParamTypes;
|
|
}
|