メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.wyrly.dev/llms.txt

Use this file to discover all available pages before exploring further.

このページでは、Wyrly DI v2.0 の安定した公開 API をまとめます。 リポジトリの API.md に記載されていないものは、内部モジュールやディープインポートを含め、セマンティックバージョニングの保証対象外です。

@wyrly/core

コアのエントリポイント:
import { createContainer, Injectable, token } from "@wyrly/core";
主なエクスポート:
ExportPurpose
token型付きインジェクショントークンを作成する
Injectable明示的な depslifetime のための標準デコレーター
createContainerルート DI コンテナを作成する
graphToJson依存グラフを JSON にシリアライズする
graphToDot依存グラフを DOT にシリアライズする
graphToMermaid依存グラフを Mermaid にシリアライズする
コアの型:
  • Token
  • ClassToken
  • InjectionToken
  • Lifetime
  • Container
  • Scope
  • Provider
  • DependencyGraph
  • ValidationResult

Adapter packages

PackageKey exports
@wyrly/expressdiMiddleware, ExpressRequestToken, ExpressResponseToken
@wyrly/honodi, getDI, HonoContextToken, RequestToken
@wyrly/freshdi, withDI, FreshContextToken, RequestToken
@wyrly/graphqlcreateGraphQLDIContext, GraphQLRequestToken, GraphQLResponseToken
@wyrly/nextwithDI, withActionDI, createServerDI, NextRequestToken

Full API list

完全な公開 API の一覧はリポジトリにあります。 API.md