Skip to content

Commit d17a6b4

Browse files
committed
Generate types with newer tsc
1 parent cccc1b9 commit d17a6b4

File tree

7 files changed

+14
-3
lines changed

7 files changed

+14
-3
lines changed

src/headless/types/plugins/muc/affiliations/api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ declare namespace _default {
5454
}
5555
export default _default;
5656
export type MemberListItem = any;
57-
//# sourceMappingURL=api.d.ts.map
57+
//# sourceMappingURL=api.d.ts.map

src/headless/types/shared/model-with-messages.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,4 @@ export default function ModelWithMessages<T extends import("./types").ModelExten
309309
};
310310
} & T;
311311
import { Model } from '@converse/skeletor';
312-
//# sourceMappingURL=model-with-messages.d.ts.map
312+
//# sourceMappingURL=model-with-messages.d.ts.map

src/headless/types/shared/settings/constants.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export type ConfigurationSettings = {
6363
i18n?: string;
6464
jid?: string;
6565
keepalive?: boolean;
66-
loglevel?: ("debug" | "info" | "error");
66+
loglevel?: ("debug" | "info" | "eror");
6767
locales?: Array<string>;
6868
nickname?: string;
6969
password?: string;

src/headless/types/utils/html.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,12 @@ export function siblingIndex(el: Element): number;
4141
* @return {string}
4242
*/
4343
export function decodeHTMLEntities(str: string): string;
44+
/**
45+
* Helper method that replace HTML-escaped symbols with equivalent characters
46+
* (e.g. transform occurrences of '&amp;' to '&')
47+
* @param {string} string - a String containing the HTML-escaped symbols.
48+
* @return {string}
49+
*/
50+
export function unescapeHTML(string: string): string;
4451
import { Strophe } from 'strophe.js';
4552
//# sourceMappingURL=html.d.ts.map

src/headless/types/utils/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ declare const _default: {
9191
queryChildren(el: HTMLElement, selector: string): ChildNode[];
9292
siblingIndex(el: Element): number;
9393
decodeHTMLEntities(str: string): string;
94+
unescapeHTML(string: string): string;
9495
getSelectValues(select: HTMLSelectElement): string[];
9596
webForm2xForm(field: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement): Element;
9697
getCurrentWord(input: HTMLInputElement | HTMLTextAreaElement, index?: number, delineator?: string | RegExp): string;

src/types/plugins/chatview/message-form.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default class MessageForm extends CustomElement {
55
};
66
};
77
model: any;
8+
shiftDown: boolean;
89
initialize(): Promise<void>;
910
handleEmojiSelection: ({ detail }: CustomEvent) => void;
1011
render(): import("lit-html").TemplateResult<1>;

src/types/utils/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ declare const _default: {
7474
queryChildren(el: HTMLElement, selector: string): ChildNode[];
7575
siblingIndex(el: Element): number;
7676
decodeHTMLEntities(str: string): string;
77+
unescapeHTML(string: string): string;
7778
getSelectValues(select: HTMLSelectElement): string[];
7879
webForm2xForm(field: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement): Element;
7980
getCurrentWord(input: HTMLInputElement | HTMLTextAreaElement, index?: number, delineator?: string | RegExp): string;
@@ -186,6 +187,7 @@ declare const _default: {
186187
queryChildren(el: HTMLElement, selector: string): ChildNode[];
187188
siblingIndex(el: Element): number;
188189
decodeHTMLEntities(str: string): string;
190+
unescapeHTML(string: string): string;
189191
getSelectValues(select: HTMLSelectElement): string[];
190192
webForm2xForm(field: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement): Element;
191193
getCurrentWord(input: HTMLInputElement | HTMLTextAreaElement, index?: number, delineator?: string | RegExp): string;

0 commit comments

Comments
 (0)