This package has been deprecated

Author message:

This package has been renamed to @mscharley/dot

@mscharley/ioc
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

Inversion of Control

npm

Source: https://github.com/mscharley/ioc-deco
Author: Matthew Scharley
Contributors: See contributors on GitHub
Bugs/Support: Github Issues
License: MIT license
Status: Active

Synopsis

A small, well-tested IOC framework for TypeScript and JavaScript with a focus on type safety and forward compatibility.

Support for TC39 standard decorators for use with both TypeScript and JavaScript as well as TypeScript's experimental decorators for projects who still use them.

Read more about our goals here.

Installation

npm i --save @mscharley/ioc

This library should work out of the box with any TypeScript configuration if you are using TypeScript 5.0 or later. Read below for other versions.

TypeScript support

This library is designed to work with either setting of the experimentalDecorators option in TypeScript 5.x or later. In TypeScript 4.x and earlier, you will need to enable experimental decorators as that is the only option for decorator support. In either case, the emitDecoratorMetadata is not required, and is not used for any functionality if enabled.

JavaScript support

JavaScript should work out of the box with any JavaScript transpiler that supports TC39 decorators. For now you will need a transpiler until the standard gets implemented more widely.

Known implementations:

Usage

For usage examples, please see the documentation.

Inspiration

The API design of this project is heavily inspired by InversifyJS.

Package Sidebar

Install

npm i @mscharley/ioc

Weekly Downloads

1

Version

1.3.2

License

MIT

Unpacked Size

274 kB

Total Files

56

Last publish

Collaborators

  • mscharley