Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A lightweight inversion of control framework for JavaScript and TypeScript

License

NotificationsYou must be signed in to change notification settings

mscharley/dot

npm

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/dot

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 theexperimentalDecorators option in TypeScript 5.x or later.emitDecoratorMetadata is not required, and is not used 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.


[8]ページ先頭

©2009-2025 Movatter.jp