Sha256: 369ba5259e66ca8c7d35e3234f7a2a0863a770fdb8266505747c65cf346a0804

Contents?: true

Size: 1.57 KB

Versions: 26

Compression:

Stored size: 1.57 KB

Contents

type Awaitable<T> = T | PromiseLike<T>;
type Nullable<T> = T | null | undefined;
type Arrayable<T> = T | Array<T>;
type ArgumentsType<T> = T extends (...args: infer U) => any ? U : never;
type MergeInsertions<T> = T extends object ? {
    [K in keyof T]: MergeInsertions<T[K]>;
} : T;
type DeepMerge<F, S> = MergeInsertions<{
    [K in keyof F | keyof S]: K extends keyof S & keyof F ? DeepMerge<F[K], S[K]> : K extends keyof S ? S[K] : K extends keyof F ? F[K] : never;
}>;
type MutableArray<T extends readonly any[]> = {
    -readonly [k in keyof T]: T[k];
};
interface Constructable {
    new (...args: any[]): any;
}
interface ParsedStack {
    method: string;
    file: string;
    line: number;
    column: number;
}
interface SerializedError {
    message: string;
    stack?: string;
    name?: string;
    stacks?: ParsedStack[];
    cause?: SerializedError;
    [key: string]: unknown;
}
interface TestError extends SerializedError {
    cause?: TestError;
    diff?: string;
    actual?: string;
    expected?: string;
}
/**
 * @deprecated Use `TestError` instead
 */
interface ErrorWithDiff {
    message: string;
    name?: string;
    cause?: unknown;
    nameStr?: string;
    stack?: string;
    stackStr?: string;
    stacks?: ParsedStack[];
    showDiff?: boolean;
    actual?: any;
    expected?: any;
    operator?: string;
    type?: string;
    frame?: string;
    diff?: string;
    codeFrame?: string;
}

export type { ArgumentsType, Arrayable, Awaitable, Constructable, DeepMerge, ErrorWithDiff, MergeInsertions, MutableArray, Nullable, ParsedStack, SerializedError, TestError };

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/@vitest/utils/dist/types.d.ts