From 3e36972c57660da16768d170d463c64f4c763008 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Wed, 17 Jun 2015 04:06:48 -0400 Subject: [PATCH] Added js-beautify\js-beautify.d.ts Options sourced from https://github.com/beautify-web/js-beautify. --- js-beautify/js-beautify.d.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 js-beautify/js-beautify.d.ts diff --git a/js-beautify/js-beautify.d.ts b/js-beautify/js-beautify.d.ts new file mode 100644 index 000000000..87ede5737 --- /dev/null +++ b/js-beautify/js-beautify.d.ts @@ -0,0 +1,29 @@ +// Type definitions for js_beautify +// Project: https://github.com/beautify-web/js-beautify/ +// Definitions by: Josh Goldberg +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare var js_beautify: { + (js_source_text: string, options?: { + "indent_size"?: number; + "indent_char"?: string; + "eol"?: string; + "indent_level"?: number; + "indent_width_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; +};