@ganuz/define-metadata-with
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@ganuz/define-metadata-with

Source Code Version MIT License Bundle Size TypeScript

Define Metadata With is package from Ganuz library

Install

$ yarn add @ganuz/define-metadata-with

Or

$ npm install --save @ganuz/define-metadata-with

Use

Module

import {
  default as defineMetadataWith
} from '@ganuz/define-metadata-with';

Browser

<script src="https://unpkg.com/@ganuz/define-metadata-with/bundle.umd.min.js"></script>
let {
  defineMetadataWith
} = G;

Examples

 defineMetadataWith('key', 'data', () => {}, 'foo', 'prop'); // throw TypeError
 defineMetadataWith('key', 'data', {}, {}, 'prop'); // throw TypeError
 defineMetadataWith('key', 'data', () => {}, {}); // => void
 defineMetadataWith('key', 'data', (o, n) => o || n, {}, 'prop'); // => void
 defineMetadataWith('key', 'data', () => 'some', class {}); // => void

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

Package Sidebar

Install

npm i @ganuz/define-metadata-with

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

140 kB

Total Files

15

Last publish

Collaborators

  • yisraelx