mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+10
-10
@@ -5,13 +5,13 @@
|
||||
|
||||
declare var LZString: LZString.LZStringStatic;
|
||||
|
||||
declare module LZString {
|
||||
declare namespace LZString {
|
||||
/**
|
||||
* LZ-based compression algorithm for JavaScript.
|
||||
*/
|
||||
interface LZStringStatic {
|
||||
/**
|
||||
* Compresses input string producing an instance of an "invalid" UTF-16 string.
|
||||
* Compresses input string producing an instance of an "invalid" UTF-16 string.
|
||||
* Such string could be stored in localStorage only on webkit
|
||||
* browsers (tested on Android, Chrome, Safari).
|
||||
*
|
||||
@@ -20,14 +20,14 @@ declare module LZString {
|
||||
compress(uncompressed: string): string;
|
||||
|
||||
/**
|
||||
* Decompresses "invalid" input string created by the method compress().
|
||||
* Decompresses "invalid" input string created by the method compress().
|
||||
*
|
||||
* @param compressed A string obtained from a call to compress().
|
||||
*/
|
||||
decompress(compressed: string): string;
|
||||
|
||||
/**
|
||||
* Compresses input string producing an instance of a "valid" UTF-16 string,
|
||||
* Compresses input string producing an instance of a "valid" UTF-16 string,
|
||||
* in the sense that all browsers can store them safely.
|
||||
*
|
||||
* @param uncompressed A string which should be compressed.
|
||||
@@ -35,7 +35,7 @@ declare module LZString {
|
||||
compressToUTF16(uncompressed: string): string;
|
||||
|
||||
/**
|
||||
* Decompresses "valid" input string created by the method compressToUTF16().
|
||||
* Decompresses "valid" input string created by the method compressToUTF16().
|
||||
*
|
||||
* @param compressed A string obtained from a call to compressToUTF16().
|
||||
*/
|
||||
@@ -43,19 +43,19 @@ declare module LZString {
|
||||
|
||||
/**
|
||||
* Compresses input string producing an instance of a ASCII UTF-16 string,
|
||||
* which represents the original string encoded in Base64.
|
||||
* The result can be safely transported outside the browser with a
|
||||
* guarantee that none of the characters produced need to be URL-encoded.
|
||||
* which represents the original string encoded in Base64.
|
||||
* The result can be safely transported outside the browser with a
|
||||
* guarantee that none of the characters produced need to be URL-encoded.
|
||||
*
|
||||
* @param uncompressed A string which should be compressed.
|
||||
*/
|
||||
compressToBase64(uncompressed: string): string;
|
||||
|
||||
/**
|
||||
* Decompresses ASCII UTF-16 input string created by the method compressToBase64().
|
||||
* Decompresses ASCII UTF-16 input string created by the method compressToBase64().
|
||||
*
|
||||
* @param compressed A string obtained from a call to compressToBase64().
|
||||
*/
|
||||
decompressFromBase64(compressed: string): string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user