npm.io
0.6.34 • Published 2 years ago

@types/oblo-util

Licence
MIT
Version
0.6.34
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/oblo-util

Summary

This package contains type definitions for oblo-util (https://github.com/Oblosys/oblo-util).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oblo-util.

index.d.ts

/// <reference types="jquery" />

interface ObloUtilStatic {
    debug: boolean;

    log(...args: any[]): void;
    error(...args: any[]): void;
    clip(min: number, max: number, x: number): number;
    square(x: number): number;
    replicate<X>(n: number, x: X): X[];
    pad(c: string, l: number, str: any): string;
    padZero(l: number, n: number): string;
    addslashes(str: string): string;
    showJSON(json: any, indentStr?: string, maxDepth?: number): string;
    showTime(date: Date): string;
    showDate(date: Date): string;
    readDate(dateStr: string): Date;
    setAttr($elt: JQuery, attrName: string, isSet: boolean): void;
}

declare var util: ObloUtilStatic;

declare module "oblo-util" {
    export = util;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Martijn Schrage.