fix(napi-derive): should transform struct case on Impl

This commit is contained in:
LongYinan 2022-04-26 17:49:53 +08:00
parent 5aa61c2142
commit cc79c9794e
4 changed files with 3 additions and 3 deletions

View file

@ -816,7 +816,7 @@ impl ConvertToAST for syn::ItemImpl {
let struct_name = extract_path_ident(struct_name)?;
let mut struct_js_name = struct_name.to_string();
let mut struct_js_name = struct_name.to_string().to_case(Case::UpperCamel);
let mut items = vec![];
let mut task_output_type = None;
for item in self.items.iter_mut() {

View file

@ -217,7 +217,7 @@ Generated by [AVA](https://avajs.dev).
export type Blake2bHasher = Blake2BHasher␊
/** Smoking test for type generation */␊
export class Blake2BHasher {␊
static withKey(key: Blake2bKey): Blake2BHasher
update(data: Buffer): void
}␊
export type Blake2bKey = Blake2BKey␊
export class Blake2BKey { }␊

View file

@ -207,7 +207,7 @@ export class Bird {
export type Blake2bHasher = Blake2BHasher
/** Smoking test for type generation */
export class Blake2BHasher {
static withKey(key: Blake2bKey): Blake2BHasher
update(data: Buffer): void
}
export type Blake2bKey = Blake2BKey
export class Blake2BKey { }