fix(napi-derive): should transform struct case on Impl
This commit is contained in:
parent
5aa61c2142
commit
cc79c9794e
4 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
|
@ -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 { }␊
|
||||
|
|
Binary file not shown.
2
examples/napi/index.d.ts
vendored
2
examples/napi/index.d.ts
vendored
|
@ -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 { }
|
||||
|
|
Loading…
Reference in a new issue