🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
47
node_modules/uvu/assert/index.d.ts
generated
vendored
Normal file
47
node_modules/uvu/assert/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
type Types = 'string' | 'number' | 'boolean' | 'object' | 'undefined' | 'function';
|
||||
|
||||
export type Message = string | Error;
|
||||
export function ok(actual: any, msg?: Message): asserts actual;
|
||||
export function is(actual: any, expects: any, msg?: Message): void;
|
||||
export function equal(actual: any, expects: any, msg?: Message): void;
|
||||
export function type(actual: any, expects: Types, msg?: Message): void;
|
||||
export function instance(actual: any, expects: any, msg?: Message): void;
|
||||
export function snapshot(actual: string, expects: string, msg?: Message): void;
|
||||
export function fixture(actual: string, expects: string, msg?: Message): void;
|
||||
export function match(actual: string, expects: string | RegExp, msg?: Message): void;
|
||||
export function throws(fn: Function, expects?: Message | RegExp | Function, msg?: Message): void;
|
||||
export function not(actual: any, msg?: Message): void;
|
||||
export function unreachable(msg?: Message): void;
|
||||
|
||||
export namespace is {
|
||||
function not(actual: any, expects: any, msg?: Message): void;
|
||||
}
|
||||
|
||||
export namespace not {
|
||||
function ok(actual: any, msg?: Message): void;
|
||||
function equal(actual: any, expects: any, msg?: Message): void;
|
||||
function type(actual: any, expects: Types, msg?: Message): void;
|
||||
function instance(actual: any, expects: any, msg?: Message): void;
|
||||
function snapshot(actual: string, expects: string, msg?: Message): void;
|
||||
function fixture(actual: string, expects: string, msg?: Message): void;
|
||||
function match(actual: string, expects: string | RegExp, msg?: Message): void;
|
||||
function throws(fn: Function, expects?: Message | RegExp | Function, msg?: Message): void;
|
||||
}
|
||||
|
||||
export class Assertion extends Error {
|
||||
name: 'Assertion';
|
||||
code: 'ERR_ASSERTION';
|
||||
details: false | string;
|
||||
generated: boolean;
|
||||
operator: string;
|
||||
expects: any;
|
||||
actual: any;
|
||||
constructor(options?: {
|
||||
message: string;
|
||||
details?: string;
|
||||
generated?: boolean;
|
||||
operator: string;
|
||||
expects: any;
|
||||
actual: any;
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue