lint extravaganza

This commit is contained in:
Paul Miller
2023-05-23 19:03:52 -05:00
parent 6ee7bd068b
commit c937bcbf9e
36 changed files with 1206 additions and 1216 deletions

View File

@@ -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 });

View File

@@ -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
}