@types/js-beautify
Advanced tools
Comparing version 1.8.2 to 1.11.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for js_beautify 1.8.3 | ||
// Type definitions for js_beautify 1.11.0 | ||
// Project: https://github.com/beautify-web/js-beautify/ | ||
@@ -6,77 +6,81 @@ // Definitions by: Josh Goldberg <https://github.com/JoshuaKGoldberg>, Hans Windhoff <https://github.com/hansrwindhoff>, Gavin Rehkemper <https://github.com/gavinr/> | ||
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?: 'collapse-preserve-inline' | 'collapse' | 'expand' | 'end-expand' | 'none'; | ||
keep_array_indentation?: boolean; | ||
keep_function_indentation?: boolean; | ||
space_before_conditional?: boolean; | ||
space_in_empty_paren?: boolean; | ||
break_chained_methods?: boolean; | ||
eval_code?: boolean; | ||
unescape_strings?: boolean; | ||
wrap_line_length?: number; | ||
wrap_attributes?: 'auto' | 'force'; | ||
wrap_attributes_indent_size?: number; | ||
end_with_newline?: boolean; | ||
e4x?: boolean; | ||
interface CoreBeautifyOptions { | ||
disabled?: boolean; | ||
eol?: string; | ||
end_with_newline?: boolean; | ||
indent_size?: number; | ||
indent_char?: string; | ||
indent_level?: number; | ||
preserve_newlines?: boolean; | ||
max_preserve_newlines?: number; | ||
indent_with_tabs?: boolean; | ||
wrap_line_length?: number; | ||
indent_empty_lines?: boolean; | ||
templating?: string[]; | ||
} | ||
// See https://github.com/beautify-web/js-beautify/blob/v1.8.2/js/src/html/beautifier.js#L268-L330 | ||
interface HTMLBeautifyOptions { | ||
indent_inner_html?: boolean; | ||
indent_body_inner_html?: boolean; | ||
indent_head_inner_html?: boolean; | ||
indent_size?: number; | ||
indent_char?: string; | ||
wrap_line_length?: number; | ||
preserve_newlines?: boolean; | ||
max_preserve_newlines?: number; | ||
indent_handlebars?: boolean; | ||
wrap_attributes?: 'auto' | 'force' | 'force-expand-multiline' | 'force-aligned' | 'aligned-multiple'; | ||
wrap_attributes_indent_size?: number; | ||
end_with_newline?: boolean; | ||
extra_liners?: string[]; | ||
eol?: string; | ||
indent_with_tabs?: boolean; | ||
disabled?: boolean; | ||
inline?: string[]; | ||
void_elements?: string[]; | ||
unformatted?: string[]; | ||
content_unformatted?: string[]; | ||
indent_scripts?: 'keep' | 'separate'; | ||
interface JSBeautifyOptions extends CoreBeautifyOptions { | ||
brace_style?: 'collapse' | 'expand' | 'end-expand' | 'none' | 'preserve-inline'; | ||
unindent_chained_methods?: boolean; | ||
break_chained_methods?: boolean; | ||
space_in_paren?: boolean; | ||
space_in_empty_paren?: boolean; | ||
jslint_happy?: boolean; | ||
space_after_anon_function?: boolean; | ||
space_after_named_function?: boolean; | ||
keep_array_indentation?: boolean; | ||
space_before_conditional?: boolean; | ||
unescape_strings?: boolean; | ||
e4x?: boolean; | ||
comma_first?: boolean; | ||
operator_position?: 'before-newline' | 'after-newline' | 'preserve-newline'; | ||
test_output_raw?: boolean; | ||
} | ||
interface CSSBeautifyOptions { | ||
indent_size?: number; | ||
indent_char?: string; | ||
indent_with_tabs?: boolean; | ||
eol?: string; | ||
end_with_newline?: boolean; | ||
selector_separator_newline?: boolean; | ||
newline_between_rules?: boolean; | ||
interface HTMLBeautifyOptions extends CoreBeautifyOptions { | ||
templating?: string[]; | ||
indent_inner_html?: boolean; | ||
indent_body_inner_html?: boolean; | ||
indent_head_inner_html?: boolean; | ||
indent_handlebars?: boolean; | ||
wrap_attributes?: | ||
| 'auto' | ||
| 'force' | ||
| 'force-aligned' | ||
| 'force-expand-multiline' | ||
| 'aligned-multiple' | ||
| 'preserve' | ||
| 'preserve-aligned'; | ||
wrap_attributes_indent_size?: number; | ||
extra_liners?: string[]; | ||
inline?: string[]; | ||
void_elements?: string[]; | ||
unformatted?: string[]; | ||
content_unformatted?: string[]; | ||
unformatted_content_delimiter?: string; | ||
indent_scripts?: 'normal' | 'keep' | 'separate'; | ||
} | ||
interface CSSBeautifyOptions extends CoreBeautifyOptions { | ||
selector_separator_newline?: boolean; | ||
newline_between_rules?: boolean; | ||
space_around_selector_separator?: boolean; | ||
space_around_combinator?: boolean; | ||
} | ||
interface jsb { | ||
(js_source_text: string, options?: JsBeautifyOptions): string; | ||
js: (js_source_text: string, options?: JsBeautifyOptions) => string; | ||
js_beautify: (js_source_text: string, options?: JsBeautifyOptions) => string; | ||
(js_source_text: string, options?: JSBeautifyOptions): string; | ||
js: (js_source_text: string, options?: JSBeautifyOptions) => string; | ||
js_beautify: (js_source_text: string, options?: JSBeautifyOptions) => string; | ||
css: (js_source_text: string, options?: CSSBeautifyOptions) => string; | ||
css_beautify: (js_source_text: string, options?: CSSBeautifyOptions) => string; | ||
css: (js_source_text: string, options?: CSSBeautifyOptions) => string; | ||
css_beautify: (js_source_text: string, options?: CSSBeautifyOptions) => string; | ||
html: (js_source_text: string, options?: HTMLBeautifyOptions) => string; | ||
html_beautify: (js_source_text: string, options?: HTMLBeautifyOptions) => string; | ||
html: (js_source_text: string, options?: HTMLBeautifyOptions) => string; | ||
html_beautify: (js_source_text: string, options?: HTMLBeautifyOptions) => string; | ||
} | ||
declare var js_beautify: jsb; | ||
declare module "js-beautify" { | ||
declare module 'js-beautify' { | ||
export = js_beautify; | ||
} |
{ | ||
"name": "@types/js-beautify", | ||
"version": "1.8.2", | ||
"version": "1.11.0", | ||
"description": "TypeScript definitions for js_beautify", | ||
@@ -19,3 +19,4 @@ "license": "MIT", | ||
"name": "Gavin Rehkemper", | ||
"url": "https://github.com/gavinr/" | ||
"url": "https://github.com/gavinr", | ||
"githubUsername": "gavinr" | ||
} | ||
@@ -32,4 +33,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "4ed11396396a68f144b40406ee7b9fbf449519866b57e06b5f874f1bbb2c02e7", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "360e0970d164f94cd87078cd38d3a80062c76b320631d87d8cac730794a6dd63", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 13 Mar 2020 00:45:27 GMT | ||
* Last updated: Wed, 20 May 2020 21:21:41 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: `js_beautify` | ||
# Credits | ||
These definitions were written by [Josh Goldberg](https://github.com/JoshuaKGoldberg), [Hans Windhoff](https://github.com/hansrwindhoff), and [Gavin Rehkemper](https://github.com/gavinr/). | ||
These definitions were written by [Josh Goldberg](https://github.com/JoshuaKGoldberg), [Hans Windhoff](https://github.com/hansrwindhoff), and [Gavin Rehkemper](https://github.com/gavinr). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5773
77