mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 21:57:58 +00:00
- Added full Russian translations for all main documentation sections () into . - Sections translated include: key features, installation, getting started, all core concepts, advanced features, API reference, FAQ, links, additional modules, contributing, and license. - Updated to ensure language switching is available and Russian locale is active. - Each Russian file preserves the structure and formatting of the original Markdown, with machine-aided draft translation for immediate use. - Lays the groundwork for UI language switching (en/ru) and enables further manual translation refinement and review.
16 lines
834 B
Markdown
16 lines
834 B
Markdown
---
|
||
sidebar_position: 4
|
||
---
|
||
|
||
# API разрешения зависимостей
|
||
|
||
- `resolve<T>()` — получает экземпляр зависимости или выбрасывает исключение, если не найдено.
|
||
- `resolveAsync<T>()` — асинхронный вариант для зависимостей с асинхронной инициализацией.
|
||
- `tryResolve<T>()` — возвращает `null`, если не найдено (синхронно).
|
||
- `tryResolveAsync<T>()` — возвращает `null` асинхронно, если не найдено.
|
||
|
||
Поддерживает:
|
||
- Синхронные и асинхронные зависимости
|
||
- Именованные зависимости
|
||
- Провайдеры с runtime-параметрами или без них
|