Initial release for SPT 3.9
This commit is contained in:
15
types/utils/EncodingUtil.d.ts
vendored
Normal file
15
types/utils/EncodingUtil.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
export declare class EncodingUtil {
|
||||
encode(value: string, encode: EncodeType): string;
|
||||
decode(value: string, encode: EncodeType): string;
|
||||
fromBase64(value: string): string;
|
||||
toBase64(value: string): string;
|
||||
fromHex(value: string): string;
|
||||
toHex(value: string): string;
|
||||
}
|
||||
export declare enum EncodeType {
|
||||
BASE64 = "base64",
|
||||
HEX = "hex",
|
||||
ASCII = "ascii",
|
||||
BINARY = "binary",
|
||||
UTF8 = "utf8"
|
||||
}
|
||||
Reference in New Issue
Block a user