fix: correct msgLit return type
This commit is contained in:
parent
9ccd1dab52
commit
851329eee1
2 changed files with 7 additions and 1 deletions
5
.changeset/blue-flowers-care.md
Normal file
5
.changeset/blue-flowers-care.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/ui': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
[localize] Correct msgLit return type to include DirectiveResult
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue