mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-27 02:44:26 +01:00
lint extravaganza
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// https://stackoverflow.com/questions/34156282/how-do-i-save-json-to-local-text-file
|
||||
|
||||
export function downloadTextFile(content: string, fileName: string, type: string) {
|
||||
export function downloadTextFile(content: string, fileName: string, type?: string) {
|
||||
const contentType = type ? type : "application/json";
|
||||
const a = document.createElement("a");
|
||||
const file = new Blob([content], { type: contentType });
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Contact, TagItem } from "@mutinywallet/mutiny-wasm"
|
||||
import { TagItem } from "@mutinywallet/mutiny-wasm"
|
||||
|
||||
export type MutinyTagItem = {
|
||||
id: string,
|
||||
@@ -20,8 +20,7 @@ export function tagsToIds(tags?: MutinyTagItem[]): string[] {
|
||||
}
|
||||
|
||||
export function tagToMutinyTag(tag: TagItem): MutinyTagItem {
|
||||
// @ts-ignore
|
||||
// FIXME: make typescript less mad about this
|
||||
// @ts-expect-error: FIXME: make typescript less mad about this
|
||||
return tag as MutinyTagItem
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user