diff --git a/package.json b/package.json index 6c06587..bc16994 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.7", "description": "Clappr's zepto custom build", "main": "zepto.min.js", + "types": "./types/zepto.d.ts", "scripts": { "build": "./scripts/build-clappr-zepto -c=v1.2.0 -o=./", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/types/zepto.d.ts b/types/zepto.d.ts new file mode 100644 index 0000000..5bd54d3 --- /dev/null +++ b/types/zepto.d.ts @@ -0,0 +1,2 @@ +export = Zepto; +declare function Zepto(selector: any, context: any): any; \ No newline at end of file diff --git a/types/zepto.min.d.ts b/types/zepto.min.d.ts new file mode 100644 index 0000000..2217aeb --- /dev/null +++ b/types/zepto.min.d.ts @@ -0,0 +1 @@ +declare function Zepto(t: any, e: any): any;