2021-09-23 02:29:09 +09:00
|
|
|
export function getWords(): Array<string>
|
|
|
|
export function getNums(): Array<number>
|
|
|
|
export function sumNums(nums: Array<number>): number
|
2021-10-30 01:05:05 +09:00
|
|
|
export function readFileAsync(path: string): Promise<Buffer>
|
2021-11-06 23:19:42 +09:00
|
|
|
export function asyncMultiTwo(arg: number): Promise<number>
|
2021-11-11 01:33:51 +09:00
|
|
|
export function bigintAdd(a: BigInt, b: BigInt): BigInt
|
|
|
|
export function createBigInt(): BigInt
|
|
|
|
export function createBigIntI64(): BigInt
|
2021-09-23 02:29:09 +09:00
|
|
|
export function getCwd(callback: (arg0: string) => void): void
|
2021-11-09 21:10:08 +09:00
|
|
|
export function readFile(callback: (arg0: Error | undefined, arg1: string | null) => void): void
|
2021-11-02 01:34:19 +09:00
|
|
|
export function eitherStringOrNumber(input: string | number): number
|
|
|
|
export function returnEither(input: number): string | number
|
|
|
|
export function either3(input: string | number | boolean): number
|
|
|
|
interface Obj {
|
|
|
|
v: string | number
|
|
|
|
}
|
|
|
|
export function either4(input: string | number | boolean | Obj): number
|
2021-11-09 21:10:08 +09:00
|
|
|
export enum Kind { Dog = 0, Cat = 1, Duck = 2 }
|
|
|
|
export enum CustomNumEnum { One = 1, Two = 2, Three = 3, Four = 4, Six = 6, Eight = 8, Nine = 9, Ten = 10 }
|
2021-09-23 02:29:09 +09:00
|
|
|
export function enumToI32(e: CustomNumEnum): number
|
2021-09-24 15:45:27 +09:00
|
|
|
export function throwError(): void
|
2021-09-24 10:46:27 +09:00
|
|
|
export function mapOption(val: number | null): number | null
|
2021-09-23 02:29:09 +09:00
|
|
|
export function add(a: number, b: number): number
|
|
|
|
export function fibonacci(n: number): number
|
|
|
|
export function listObjKeys(obj: object): Array<string>
|
|
|
|
export function createObj(): object
|
2021-09-28 01:01:19 +09:00
|
|
|
interface PackageJson {
|
|
|
|
name: string
|
|
|
|
version: string
|
|
|
|
dependencies: Record<string, any> | null
|
|
|
|
devDependencies: Record<string, any> | null
|
|
|
|
}
|
|
|
|
export function readPackageJson(): PackageJson
|
|
|
|
export function getPackageJsonName(packageJson: PackageJson): string
|
2021-09-23 02:29:09 +09:00
|
|
|
export function contains(source: string, target: string): boolean
|
|
|
|
export function concatStr(mutS: string): string
|
2021-09-28 01:01:19 +09:00
|
|
|
export function concatUtf16(s: string): string
|
|
|
|
export function concatLatin1(s: string): string
|
2021-11-02 21:36:34 +09:00
|
|
|
export function withoutAbortController(a: number, b: number): Promise<number>
|
2021-11-09 21:10:08 +09:00
|
|
|
export function withAbortController(a: number, b: number, signal: AbortSignal): Promise<number>
|
2021-10-08 22:13:27 +09:00
|
|
|
export function getBuffer(): Buffer
|
2021-09-23 02:29:09 +09:00
|
|
|
export class Animal {
|
|
|
|
readonly kind: Kind
|
|
|
|
constructor(kind: Kind, name: string)
|
2021-11-05 19:31:36 +09:00
|
|
|
static withKind(kind: Kind): Animal
|
2021-09-24 14:00:35 +09:00
|
|
|
get name(): string
|
|
|
|
set name(name: string)
|
2021-09-23 02:29:09 +09:00
|
|
|
whoami(): string
|
2021-09-24 21:19:54 +09:00
|
|
|
static getDogKind(): Kind
|
2021-11-06 12:53:53 +09:00
|
|
|
}
|
|
|
|
export class Blake2BHasher {
|
2021-11-09 21:10:08 +09:00
|
|
|
|
2021-11-06 12:53:53 +09:00
|
|
|
static withKey(key: Blake2bKey): Blake2BHasher
|
|
|
|
}
|
2021-11-09 21:10:08 +09:00
|
|
|
export class Blake2BKey {
|
|
|
|
|
|
|
|
}
|
2021-11-06 22:48:18 +09:00
|
|
|
export class Context {
|
2021-11-09 21:10:08 +09:00
|
|
|
|
2021-11-06 22:48:18 +09:00
|
|
|
constructor()
|
|
|
|
static withData(data: string): Context
|
|
|
|
method(): string
|
2021-09-23 02:29:09 +09:00
|
|
|
}
|
2021-11-05 19:31:36 +09:00
|
|
|
export class ClassWithFactory {
|
|
|
|
name: string
|
|
|
|
static withName(name: string): ClassWithFactory
|
|
|
|
}
|