From 74dd765520cc2d6db18e4601935b02ccb6933bb4 Mon Sep 17 00:00:00 2001 From: Maxim Givanyan Date: Wed, 7 Feb 2024 12:24:32 +0300 Subject: [PATCH] chore: up README.md --- .../modules/theme/system-theme-extractor/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/super/i-static-page/modules/theme/system-theme-extractor/README.md b/src/components/super/i-static-page/modules/theme/system-theme-extractor/README.md index b0bb7c1c7c..5a8cefdbb0 100644 --- a/src/components/super/i-static-page/modules/theme/system-theme-extractor/README.md +++ b/src/components/super/i-static-page/modules/theme/system-theme-extractor/README.md @@ -9,12 +9,12 @@ By default, the engine for the web is supported. The engine needs to be passed to the `themeManager` constructor. ```ts -import { webEngineFactory } from 'components/super/i-static-page/modules/theme/system-theme-extractor/engines/web'; +import WebEngine from 'components/super/i-static-page/modules/theme/system-theme-extractor/engines/web/engine'; class iRoot extends iStaticPage { @system((o) => themeManagerFactory( // ...other required parameters for themeManager - webEngineFactory(o) + new WebEngine(o) )) readonly theme: CanUndef; @@ -33,7 +33,7 @@ export default class CustomEngine implements SystemThemeExtractor { ``` The `SystemThemeExtractor` interface specifies that the `getSystemTheme` method -should return a promise-like object so that you can compute the system theme asynchronously. +should return a promise object so that you can compute the system theme asynchronously. If synchronous computation is relevant in your case, you can use `SyncPromise`. See `components/super/i-static-page/modules/theme` for details