test: update ts snapshot

This commit is contained in:
LongYinan 2021-11-16 13:07:17 +08:00
parent fa8e32d3c0
commit dd0a705b83
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ Generated by [AVA](https://avajs.dev).
export function createBigInt(): BigInt␊
export function createBigIntI64(): BigInt␊
export function getCwd(callback: (arg0: string) => void): void␊
export function readFile(callback: (arg0: Error | undefined, arg1: string | null) => void): void␊
export function readFile(callback: (arg0: Error | undefined, arg1?: string | undefined | null) => void): void␊
export function eitherStringOrNumber(input: string | number): number␊
export function returnEither(input: number): string | number␊
export function either3(input: string | number | boolean): number␊
@ -29,7 +29,7 @@ Generated by [AVA](https://avajs.dev).
export enum CustomNumEnum { One = 1, Two = 2, Three = 3, Four = 4, Six = 6, Eight = 8, Nine = 9, Ten = 10 }␊
export function enumToI32(e: CustomNumEnum): number␊
export function throwError(): void␊
export function mapOption(val: number | null): number | null␊
export function mapOption(val?: number | undefined | null): number | undefined | null␊
export function add(a: number, b: number): number␊
export function fibonacci(n: number): number␊
export function listObjKeys(obj: object): Array<string>
@ -41,8 +41,8 @@ Generated by [AVA](https://avajs.dev).
interface PackageJson {␊
name: string␊
version: string␊
dependencies: Record<string, any> | null␊
devDependencies: Record<string, any> | null␊
dependencies?: Record<string, any> | undefined | null␊
devDependencies?: Record<string, any> | undefined | null␊
}␊
export function readPackageJson(): PackageJson␊
export function getPackageJsonName(packageJson: PackageJson): string␊
@ -74,7 +74,7 @@ Generated by [AVA](https://avajs.dev).
}␊
export class Context {␊
maybeNeed?: boolean | undefined | null
constructor()␊
static withData(data: string): Context␊
method(): string␊