swaf/src/assets/ts/featherIcons.ts
Alice Gaudon 4a09d2e1fe Fix linting on frontend TS
Add return type (void) to replaceIcons function
2021-11-10 17:09:30 +01:00

11 lines
231 B
TypeScript

import feather from "feather-icons";
let alreadyReplaced = false;
export function replaceIcons(once: boolean = true): void {
if (!once || !alreadyReplaced) {
alreadyReplaced = true;
feather.replace();
}
}