taro-bluetooth-print 2.9.2 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/di/Container.ts +1 -1
package/package.json
CHANGED
package/src/core/di/Container.ts
CHANGED
|
@@ -311,7 +311,7 @@ export const rootContainer = new Container();
|
|
|
311
311
|
export function injectable<T extends Constructor<object>>(constructor: T): T {
|
|
312
312
|
// 标记类为可注入
|
|
313
313
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
314
|
-
(constructor as
|
|
314
|
+
(constructor as unknown as { __injectable: boolean }).__injectable = true;
|
|
315
315
|
return constructor;
|
|
316
316
|
}
|
|
317
317
|
|