diff --git a/cli/src/build.ts b/cli/src/build.ts index 919fd400..9896863b 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -364,7 +364,7 @@ async function processIntermediateTypeFile( const dtsHeader = `/* tslint:disable */ /* eslint-disable */ -/* auto-generated by Napi-rs */ +/* auto-generated by NAPI-RS */ export class ExternalObject { readonly '': { diff --git a/examples/napi/__test__/typegen.spec.ts.md b/examples/napi/__test__/typegen.spec.ts.md index 106ed2e6..f2a985cc 100644 --- a/examples/napi/__test__/typegen.spec.ts.md +++ b/examples/napi/__test__/typegen.spec.ts.md @@ -8,7 +8,10 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 - `/* eslint-disable */␊ + `/* tslint:disable */␊ + /* eslint-disable */␊ + ␊ + /* auto-generated by NAPI-RS */␊ ␊ export class ExternalObject {␊ readonly '': {␊ @@ -156,6 +159,13 @@ Generated by [AVA](https://avajs.dev). kind: number␊ constructor(name: string, kind: number)␊ }␊ + export class NinjaTurtle {␊ + name: string␊ + /** Create your ninja turtle! 🐢 */␊ + static newRaph(): NinjaTurtle␊ + getMaskColor(): string␊ + getName(): string␊ + }␊ export class ClassWithFactory {␊ name: string␊ static withName(name: string): ClassWithFactory␊ diff --git a/examples/napi/__test__/typegen.spec.ts.snap b/examples/napi/__test__/typegen.spec.ts.snap index 43419afb..7132e138 100644 Binary files a/examples/napi/__test__/typegen.spec.ts.snap and b/examples/napi/__test__/typegen.spec.ts.snap differ diff --git a/examples/napi/index.d.ts b/examples/napi/index.d.ts index d498072d..da358ea6 100644 --- a/examples/napi/index.d.ts +++ b/examples/napi/index.d.ts @@ -1,5 +1,8 @@ +/* tslint:disable */ /* eslint-disable */ +/* auto-generated by NAPI-RS */ + export class ExternalObject { readonly '': { readonly '': unique symbol