mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add type definitions for gulp-json-editor
This commit is contained in:
Vendored
+28
-22
@@ -2,28 +2,34 @@
|
||||
// Project: https://github.com/beautify-web/js-beautify/
|
||||
// Definitions by: Josh Goldberg <https://github.com/JoshuaKGoldberg/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
// Type definitions for js_beautify
|
||||
// Project: https://github.com/beautify-web/js-beautify/
|
||||
// Definitions by: Josh Goldberg <https://github.com/JoshuaKGoldberg/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface JsBeautifyOptions {
|
||||
indent_size?: number;
|
||||
indent_char?: string;
|
||||
eol?: string;
|
||||
indent_level?: number;
|
||||
indent_with_tabs?: boolean;
|
||||
preserve_newlines?: boolean;
|
||||
max_preserve_newlines?: number;
|
||||
jslint_happy?: boolean;
|
||||
space_after_anon_function?: boolean;
|
||||
brace_style?: string;
|
||||
keep_array_indentation?: boolean;
|
||||
keep_function_indentation?: boolean;
|
||||
space_before_conditional?: boolean;
|
||||
break_chained_methods?: boolean;
|
||||
eval_code?: boolean;
|
||||
unescape_strings?: boolean;
|
||||
wrap_line_length?: number;
|
||||
wrap_attributes?: string;
|
||||
wrap_attributes_indent_size?: number;
|
||||
end_with_newline?: boolean;
|
||||
}
|
||||
|
||||
declare var js_beautify: {
|
||||
(js_source_text: string, options?: {
|
||||
indent_size?: number;
|
||||
indent_char?: string;
|
||||
eol?: string;
|
||||
indent_level?: number;
|
||||
indent_with_tabs?: boolean;
|
||||
preserve_newlines?: boolean;
|
||||
max_preserve_newlines?: number;
|
||||
jslint_happy: boolean;
|
||||
space_after_anon_function: boolean;
|
||||
brace_style: string;
|
||||
keep_array_indentation: boolean;
|
||||
keep_function_indentation: boolean;
|
||||
space_before_conditional: boolean;
|
||||
break_chained_methods: boolean;
|
||||
eval_code: boolean;
|
||||
unescape_strings: boolean;
|
||||
wrap_line_length: number;
|
||||
wrap_attributes: string;
|
||||
wrap_attributes_indent_size: number;
|
||||
end_with_newline: boolean;
|
||||
}): string;
|
||||
(js_source_text: string, options?: JsBeautifyOptions): string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user