1.0.5 • Published 3 months ago

lkt-ts-interfaces v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

LKT TS Interfaces

In this package are located the interfaces used by lkt-web-tech project.

LktObject

This interface polyfills the traditional Javascript object to Typescript.

Usage

import {LktObject} from "lkt-ts-interfaces";

const myObject: LktObject = {};

// With this interface, you can add props dynamically:
const props = ['lorem', 'ipsum'];
props.forEach(prop => {myObject[prop] = prop});

// Or like this:
myObject.may = '...the force be with you!'