Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/core/ThemeInjector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ export class ThemeInjector extends Injector {
super.set(createThemeInjectorPayload(theme, variant));
}
}

export default ThemeInjector;
6 changes: 3 additions & 3 deletions src/core/registerCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from './vdom';
import { from } from '../shim/array';
import global from '../shim/global';
import Injector from './Injector';
import ThemeInjector from './ThemeInjector';
import { DomVNode, WNode } from './interfaces';

const RESERVED_PROPS = ['focus'];
Expand Down Expand Up @@ -97,8 +97,8 @@ export function DomToWidgetWrapper(domNode: HTMLElement): any {
return wrapper;
}

function registerThemeInjector(theme: any, themeRegistry: Registry): Injector {
const themeInjector = new Injector(theme);
function registerThemeInjector(theme: any, themeRegistry: Registry): ThemeInjector {
const themeInjector = new ThemeInjector(theme);
themeRegistry.defineInjector('__theme_injector', (invalidator) => {
themeInjector.setInvalidator(invalidator);
return () => themeInjector;
Expand Down