Migrate to eslint
This commit is contained in:
parent
0fe7e30398
commit
b4e9c278d3
27 changed files with 104 additions and 71 deletions
|
@ -1,18 +1,21 @@
|
|||
export function getSearchResultsProps(attributes: any) {
|
||||
// @ts-ignore
|
||||
// Matching Whisper.Message API
|
||||
// eslint-disable-next-line max-len
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
||||
export function getSearchResultsProps(attributes: any): any {
|
||||
const model = new window.Whisper.Message(attributes);
|
||||
|
||||
return model.getPropsForSearchResult();
|
||||
}
|
||||
|
||||
export function getBubbleProps(attributes: any) {
|
||||
// @ts-ignore
|
||||
// Matching Whisper.Message API
|
||||
// eslint-disable-next-line max-len
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
||||
export function getBubbleProps(attributes: any): any {
|
||||
const model = new window.Whisper.Message(attributes);
|
||||
|
||||
return model.getPropsForBubble();
|
||||
}
|
||||
|
||||
export function showSettings() {
|
||||
// @ts-ignore
|
||||
export function showSettings(): void {
|
||||
window.showSettings();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue