test: update type snapshot
This commit is contained in:
parent
72f58204d2
commit
7891c52cbf
4 changed files with 15 additions and 2 deletions
|
@ -364,7 +364,7 @@ async function processIntermediateTypeFile(
|
||||||
const dtsHeader = `/* tslint:disable */
|
const dtsHeader = `/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
/* auto-generated by Napi-rs */
|
/* auto-generated by NAPI-RS */
|
||||||
|
|
||||||
export class ExternalObject<T> {
|
export class ExternalObject<T> {
|
||||||
readonly '': {
|
readonly '': {
|
||||||
|
|
|
@ -8,7 +8,10 @@ Generated by [AVA](https://avajs.dev).
|
||||||
|
|
||||||
> Snapshot 1
|
> Snapshot 1
|
||||||
|
|
||||||
`/* eslint-disable */␊
|
`/* tslint:disable */␊
|
||||||
|
/* eslint-disable */␊
|
||||||
|
␊
|
||||||
|
/* auto-generated by NAPI-RS */␊
|
||||||
␊
|
␊
|
||||||
export class ExternalObject<T> {␊
|
export class ExternalObject<T> {␊
|
||||||
readonly '': {␊
|
readonly '': {␊
|
||||||
|
@ -156,6 +159,13 @@ Generated by [AVA](https://avajs.dev).
|
||||||
kind: number␊
|
kind: number␊
|
||||||
constructor(name: string, 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 {␊
|
export class ClassWithFactory {␊
|
||||||
name: string␊
|
name: string␊
|
||||||
static withName(name: string): ClassWithFactory␊
|
static withName(name: string): ClassWithFactory␊
|
||||||
|
|
Binary file not shown.
3
examples/napi/index.d.ts
vendored
3
examples/napi/index.d.ts
vendored
|
@ -1,5 +1,8 @@
|
||||||
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
|
/* auto-generated by NAPI-RS */
|
||||||
|
|
||||||
export class ExternalObject<T> {
|
export class ExternalObject<T> {
|
||||||
readonly '': {
|
readonly '': {
|
||||||
readonly '': unique symbol
|
readonly '': unique symbol
|
||||||
|
|
Loading…
Reference in a new issue