UNPKG

@busy-hour/blaze

Version:

<h1 align='center'>🔥 Blaze</h1> <div align='center'> An event driven framework for 🔥 Hono.js </div>

12 lines (11 loc) • 972 B
import type { Random } from '../types/common'; export declare function hasOwnProperty<Z extends NonNullable<unknown>, X extends NonNullable<unknown> = NonNullable<unknown>, Y extends PropertyKey = PropertyKey>(obj: X, property: Y): obj is X & Record<Y, Z>; export declare function mapToObject(map: Map<Random, unknown>, valueMapper?: (value: unknown) => unknown): {}; export declare function toArray<T>(value: T | T[]): T[]; export declare function isNil<T>(value: T | null | undefined): value is null | undefined; export declare function removeTrailingSlash(path: string): string; export declare function resolvePromise<T>(promise: Promise<T> | T): Promise<readonly [result: T, error: null] | readonly [result: null, error: unknown]>; export declare function isEmpty(value: Random): boolean; export declare function isOnCjs(): boolean; export declare function loadFile<T = Random>(id: string): Promise<T>; export declare function crossRequire<T = Random>(id: string): T;