done i think

This commit is contained in:
2022-03-29 23:25:06 -05:00
parent 97c05f168d
commit 5a62482891
24 changed files with 643 additions and 18 deletions

22
lib/util.d.ts vendored Normal file
View File

@@ -0,0 +1,22 @@
import { basicObject, basicObjectString, basicObjectStringable, bigStringType, embedObject } from './types';
/**
*
* @param str
* @param args
* @returns
*/
export declare function template(str: string, args: basicObject): string;
/**
* converts bigString to string
*/
export declare function bigString(bigStr: bigStringType): string;
/**
* converts Hex Color string to an RGB array
*/
export declare function resolveColor(color: string): [number, number, number];
/**
* converts embedObj to a string if applicable
* @param fallback the string to use if no valid strings can be found
*/
export declare function embedObjStr(embedObj: embedObject, args?: basicObjectString, fallback?: string): string;
export declare function convertBasicObject(obj: basicObjectStringable): basicObjectString;