0.7.6 • Published 2 years ago

@types/clamp-js v0.7.6

Weekly downloads
2,042
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.7.5

2 years ago

0.7.4

2 years ago

0.7.3

4 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago