@types/adeira__js
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

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 Maybe<T> = null | undefined | T;

export function invariant(condition: boolean, format: string, ...args: readonly 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: readonly any[]): string;

export function warning(condition: boolean, format: string, ...args: readonly any[]): void;

export function rangeMap<T>(n: number, fn: (i: number) => T): readonly T[];

export {};

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:23 GMT
  • Dependencies: none

Credits

These definitions were written by Martin Zlámal.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/adeira__js

Weekly Downloads

281

Version

2.1.3

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • types