Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/uri-js/src/punycode.d.ts')
-rw-r--r--node_modules/uri-js/src/punycode.d.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/node_modules/uri-js/src/punycode.d.ts b/node_modules/uri-js/src/punycode.d.ts
new file mode 100644
index 000000000..4ecbd3484
--- /dev/null
+++ b/node_modules/uri-js/src/punycode.d.ts
@@ -0,0 +1,24 @@
+declare module 'punycode' {
+ function ucs2decode(string:string):Array<number>;
+ function ucs2encode(array:Array<number>):string;
+ function decode(string:string):string;
+ function encode(string:string):string;
+ function toASCII(string:string):string;
+ function toUnicode(string:string):string;
+
+ interface Punycode {
+ 'version': '2.2.0';
+ 'ucs2': {
+ 'decode': typeof ucs2decode;
+ 'encode': typeof ucs2encode;
+ },
+ 'decode': typeof decode;
+ 'encode': typeof encode;
+ 'toASCII': typeof toASCII;
+ 'toUnicode': typeof toUnicode;
+ }
+
+ const punycode:Punycode;
+
+ export default punycode;
+}