0.11.5 • Published 7 months ago

@types/clamp-js-main v0.11.5

Weekly downloads
63
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/clamp-js-main

Summary

This package contains type definitions for clamp-js-main (https://github.com/jmenglis/clamp-js-main#readme).

Details

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

index.d.ts

// Type definitions for clamp-js-main 0.11
// Project: https://github.com/jmenglis/clamp-js-main#readme
// Definitions by: Sinziana Nicolae <https://github.com/sinziananicolae>
// 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;
    }
}

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

Additional Details

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

Credits

These definitions were written by Sinziana Nicolae.

0.11.3

9 months ago

0.11.4

7 months ago

0.11.5

7 months ago

0.11.2

3 years ago

0.11.1

5 years ago

0.11.0

6 years ago