mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-19 07:51:26 +00:00
give class members 2 spaces indentation in .d.ts files
This commit is contained in:
@ -2399,6 +2399,8 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
|||||||
.contents
|
.contents
|
||||||
.push_str(&format_doc_comments(&export.comments, Some(js_doc)));
|
.push_str(&format_doc_comments(&export.comments, Some(js_doc)));
|
||||||
|
|
||||||
|
class.typescript.push_str(" "); // Indentation
|
||||||
|
|
||||||
if export.is_constructor {
|
if export.is_constructor {
|
||||||
if class.has_constructor {
|
if class.has_constructor {
|
||||||
bail!("found duplicate constructor `{}`", export.function.name);
|
bail!("found duplicate constructor `{}`", export.function.name);
|
||||||
|
Reference in New Issue
Block a user