0.1.1 • Published 7 years ago
@ganuz/define-metadata-with v0.1.1
@ganuz/define-metadata-with
Define Metadata With is package from Ganuz library
Install
$ yarn add @ganuz/define-metadata-withOr
$ npm install --save @ganuz/define-metadata-withUse
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 {}); // => voidLicense
Copyright © Yisrael Eliev, Licensed under the MIT license.