Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 8080994

Browse files
authored
Merge pull request #240 from tomhicks/patch-1
Make and use declaration file for TypeScript
2 parents 2f0e4e2 + 7378840 commit 8080994

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.2.18",
44
"description": "react native image viewer,大图浏览",
55
"main": "built/index.js",
6-
"types": "src/index.ts",
6+
"types": "built/index.d.ts",
77
"scripts": {
88
"prepare": "rm -rf built && tsc",
99
"start": "tsc -w --outDir demo/built"

tslint.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"declaration": true,
34
"module": "commonjs",
45
"strict": true,
56
"emitDecoratorMetadata": true,

0 commit comments

Comments
 (0)