lkt-ts-interfaces
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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!'

Package Sidebar

Install

npm i lkt-ts-interfaces

Weekly Downloads

30

Version

1.0.5

License

MIT

Unpacked Size

1.43 kB

Total Files

4

Last publish

Collaborators

  • lekrat