type-enforcer-ui
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Type Enforcer Ui

An extension of type-enforcer with UI related data types and enforcer functions

npm build coverage deps size vulnerabilities license


Installation

npm install type-enforcer-ui

Requires Babel 7.2+


About

type-enforcer-ui re-exports everything from type-enforcer and type-enforcer-math.


Objects

is : object

Utility functions for checking if something is a particular data type. Includes all the checks from type-enforcer and type-enforcer-math.

enforce : object

Utility functions for enforcing data types. Includes all the enforcers from type-enforcer and type-enforcer-math.

method : object

Enforce data types and remove common boilerplate code on class methods. Includes all the methods from type-enforcer and type-enforcer-math.


Classes

CssSize

A class for handling css size conversions

DockPoint

Allows the designation of a specific point relative to an object.

Thickness

Replicates the functionality of css border-width, margin, and padding, or anything that requires top, right, bottom, and left css sizes.

windowResize[Queue](https://github.com/DarrenPaulWright/type-enforcer/blob/master/docs/Queue.md)

Executes callbacks whenever the screen is resized (throttled at 100ms) or explicitly triggered

Package Sidebar

Install

npm i type-enforcer-ui

Weekly Downloads

13

Version

1.2.1

License

MIT

Unpacked Size

64.6 kB

Total Files

76

Last publish

Collaborators

  • darrenpaulwright