mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Add stubs for lzstring (#11479)
This commit is contained in:
6
stubs/lzstring/@tests/stubtest_allowlist.txt
Normal file
6
stubs/lzstring/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
# Internal implementation details that are intentionally missing from stub
|
||||
lzstring.keyStrBase64
|
||||
lzstring.keyStrUriSafe
|
||||
lzstring.baseReverseDic
|
||||
lzstring.Object
|
||||
lzstring.getBaseValue
|
||||
2
stubs/lzstring/METADATA.toml
Normal file
2
stubs/lzstring/METADATA.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
version = "1.0.*"
|
||||
upstream_repository = "https://github.com/gkovacs/lz-string-python"
|
||||
17
stubs/lzstring/lzstring/__init__.pyi
Normal file
17
stubs/lzstring/lzstring/__init__.pyi
Normal file
@@ -0,0 +1,17 @@
|
||||
class LZString:
|
||||
@staticmethod
|
||||
def compress(uncompressed: str | None) -> str: ...
|
||||
@staticmethod
|
||||
def compressToUTF16(uncompressed: str | None) -> str: ...
|
||||
@staticmethod
|
||||
def compressToBase64(uncompressed: str | None) -> str: ...
|
||||
@staticmethod
|
||||
def compressToEncodedURIComponent(uncompressed: str | None) -> str: ...
|
||||
@staticmethod
|
||||
def decompress(compressed: str | None) -> str | None: ...
|
||||
@staticmethod
|
||||
def decompressFromUTF16(compressed: str | None) -> str | None: ...
|
||||
@staticmethod
|
||||
def decompressFromBase64(compressed: str | None) -> str | None: ...
|
||||
@staticmethod
|
||||
def decompressFromEncodedURIComponent(compressed: str | None) -> str | None: ...
|
||||
Reference in New Issue
Block a user