diff --git a/.changeset/blue-flowers-care.md b/.changeset/blue-flowers-care.md new file mode 100644 index 000000000..4ea9468b0 --- /dev/null +++ b/.changeset/blue-flowers-care.md @@ -0,0 +1,5 @@ +--- +'@lion/ui': patch +--- + +[localize] Correct msgLit return type to include DirectiveResult diff --git a/packages/ui/components/localize/types/LocalizeMixinTypes.ts b/packages/ui/components/localize/types/LocalizeMixinTypes.ts index 86226a2ba..a9102f683 100644 --- a/packages/ui/components/localize/types/LocalizeMixinTypes.ts +++ b/packages/ui/components/localize/types/LocalizeMixinTypes.ts @@ -1,5 +1,6 @@ import { Constructor } from '@open-wc/dedupe-mixin'; import { LitElement } from 'lit'; +import { DirectiveResult } from 'lit/directive.js'; export interface FormatNumberPart { type: string; @@ -75,7 +76,7 @@ export declare class LocalizeMixinHost { public onLocaleUpdated(): void; public connectedCallback(): void; public disconnectedCallback(): void; - public msgLit(keys: string | string[], variables?: msgVariables, options?: msgOptions): void; + public msgLit(keys: string | string[], variables?: msgVariables, options?: msgOptions): string | DirectiveResult; private __boundLocalizeOnLocaleChanged(...args: Object[]): void; private __boundLocalizeOnLocaleChanging(...args: Object[]): void;