This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* SVG ICON CONSTRUCTOR | |
* @constructor | |
* @param {string} svgId The reference ID for the SVG (for use with the 'use' svg) | |
* @param {string} className Class of the SVG's parent element | |
*/ | |
function Svg(svgId, className) { | |
this.svgId = svgId; | |
this.className = className; | |
this.createSvg = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { v4 as uuidv4 } from 'uuid' | |
type CachedPromise = Promise<any> | |
type PromiseDetails = Record<string, unknown> | |
type PromiseId = string | |
type MatcherCallback = (args: PromiseDetails) => boolean | |
type ActionId = string | |
interface IPromiseDataModel { | |
id: PromiseId |