0.1.1 • Published 6 years ago

@ganuz/define-metadata-with v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

@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.