Skip to content

Commit fc3e573

Browse files
authored
feat: Publish TypeScript definitions (#2491)
1 parent 8e9750d commit fc3e573

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
types/tests

README.md

-8
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ const Parse = require('parse/weapp');
102102
```
103103
If you want to use a pre-compiled file, you can fetch it from [unpkg](https://unpkg.com). The development version is available at [https://unpkg.com/parse/dist/parse.weapp.js](https://unpkg.com/parse/dist/parse.weapp.js), and the minified production version is at [https://unpkg.com/parse/dist/parse.weapp.min.js](https://unpkg.com/parse/dist/parse.weapp.min.js).
104104

105-
For TypeScript applications, install `'@types/parse'`:
106-
```
107-
$ npm install @types/parse
108-
```
109-
110-
Types are updated manually after every release. If a definition doesn't exist, please submit a pull request to [@types/parse][types-parse]
111-
112105
#### Core Manager
113106

114107
The SDK has a [Core Manager][core-manager] that handles all configurations and controllers. These modules can be swapped out for customization before you initialize the SDK. For full list of all available modules take a look at the [Core Manager Documentation][core-manager].
@@ -146,4 +139,3 @@ We really want Parse to be yours, to see it grow and thrive in the open source c
146139
[custom-auth-module]: https://docs.parseplatform.org/js/guide/#custom-authentication-module
147140
[link-with]: https://docs.parseplatform.org/js/guide/#linking-users
148141
[open-collective-link]: https://opencollective.com/parse-server
149-
[types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
"weapp.js",
2222
"dist/",
2323
"lib/",
24+
"types/",
2425
"LICENSE",
2526
"NOTICE",
2627
"README.md"
2728
],
29+
"types": "types/index.d.ts",
2830
"browser": {
2931
"react-native": false
3032
},

0 commit comments

Comments
 (0)