0.7.6 • Published 6 months ago

@types/clamp-js v0.7.6

Weekly downloads
2,042
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/clamp-js

Summary

This package contains type definitions for clamp-js (https://github.com/xavi160/Clamp.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clamp-js.

index.d.ts

// Type definitions for clamp-js 0.7
// Project: https://github.com/xavi160/Clamp.js
// Definitions by: Sebastiaan de Rooij <https://github.com/Hikariii>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace clamp {
    interface ClampOptions {
        clamp?: number|string | undefined;
        useNativeClamp?: boolean | undefined;
        splitOnChars?: string[] | undefined;
        animate?: boolean | undefined;
        truncationChar?: string | undefined;
        truncationHTML?: string | null | undefined;
    }

    interface ClampResponse {
        original: string;
        clamped: string;
    }
}

declare function clamp(element: HTMLElement, options?: clamp.ClampOptions): clamp.ClampResponse;

export = clamp;
export as namespace clamp;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:07:53 GMT
  • Dependencies: none
  • Global values: clamp

Credits

These definitions were written by Sebastiaan de Rooij.

0.7.6

6 months ago

0.7.5

7 months ago

0.7.4

8 months ago

0.7.3

3 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago