@ganuz/define-metadata-with
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.