MCPcopy Create free account
hub / github.com/esengine/esengine / resolve

Function resolve

packages/editor-runtime/src/PluginAPI.ts:145–147  ·  view source on GitHub ↗

* 解析服务(类型安全) * Resolve service (type-safe) * * 使用 ServiceToken 获取服务实例,提供完整的类型推断。 * Use ServiceToken to get service instance with full type inference. * * @param token 服务令牌 | Service token * @returns 服务实例 | Service instance * * @example * ```typescrip

(token: ServiceToken<T>)

Source from the content-addressed store, hash-verified

143 * ```
144 */
145 resolve<T>(token: ServiceToken<T>): T {
146 return getInternalAPI().resolveService<T>(token);
147 },
148
149 /**
150 * 检查 API 是否可用

Callers 15

rollup.config.cjsFile · 0.85
checkStateMethod · 0.85
checkLoadingMethod · 0.85
pluginPresetFunction · 0.85
standaloneRuntimeConfigFunction · 0.85
runtimeOnlyPresetFunction · 0.85
editorOnlyPresetFunction · 0.85
vite.config.tsFile · 0.85
handleRunInBrowserFunction · 0.85
checkForUpdatesOnStartupFunction · 0.85
executeViaScriptTagMethod · 0.85
loadImageMethod · 0.85

Calls 2

getInternalAPIFunction · 0.85
resolveServiceMethod · 0.65

Tested by

no test coverage detected