fix: correct msgLit return type

This commit is contained in:
Thomas Allmer 2023-01-24 10:14:00 +01:00 committed by gerjanvangeest
parent 9ccd1dab52
commit 851329eee1
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/ui': patch
---
[localize] Correct msgLit return type to include DirectiveResult

View file

@ -1,5 +1,6 @@
import { Constructor } from '@open-wc/dedupe-mixin'; import { Constructor } from '@open-wc/dedupe-mixin';
import { LitElement } from 'lit'; import { LitElement } from 'lit';
import { DirectiveResult } from 'lit/directive.js';
export interface FormatNumberPart { export interface FormatNumberPart {
type: string; type: string;
@ -75,7 +76,7 @@ export declare class LocalizeMixinHost {
public onLocaleUpdated(): void; public onLocaleUpdated(): void;
public connectedCallback(): void; public connectedCallback(): void;
public disconnectedCallback(): 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 __boundLocalizeOnLocaleChanged(...args: Object[]): void;
private __boundLocalizeOnLocaleChanging(...args: Object[]): void; private __boundLocalizeOnLocaleChanging(...args: Object[]): void;