2.1.3 • Published 6 months ago
@types/adeira__js v2.1.3
Installation
npm install --save @types/adeira__js
Summary
This package contains type definitions for @adeira/js (https://github.com/adeira/universe/tree/master/src/js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/adeira__js.
index.d.ts
// Type definitions for @adeira/js 2.1
// Project: https://github.com/adeira/universe/tree/master/src/js
// Definitions by: Martin Zlámal <https://github.com/mrtnzlml>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.7
type Maybe<T> = null | undefined | T;
export function invariant(condition: boolean, format: string, ...args: ReadonlyArray<any>): asserts condition;
export function isBrowser(): boolean;
export function isNumeric(value: any): boolean;
export function isObject(value: any): boolean;
export function isObjectEmpty(value: any): boolean;
export function nullthrows<T>(x: Maybe<T>, message?: string): T extends null | undefined ? never : T;
export function sprintf(format: string, ...args: ReadonlyArray<any>): string;
export function warning(condition: boolean, format: string, ...args: ReadonlyArray<any>): void;
export function rangeMap<T>(n: number, fn: (i: number) => T): ReadonlyArray<T>;
export {};
Additional Details
- Last updated: Sat, 03 Jul 2021 14:31:17 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Martin Zlámal.