painor 4 éve
szülő
commit
50a443fee8
7 módosított fájl, 8 hozzáadás és 12 törlés
  1. 0 7
      .npmignore
  2. 1 1
      gramjs/Version.ts
  3. 0 0
      gramjs/static/api.tl
  4. 0 0
      gramjs/static/schema.tl
  5. 1 1
      gramjs/tl/custom/chatGetter.ts
  6. 3 2
      package.json
  7. 3 1
      tsconfig.json

+ 0 - 7
.npmignore

@@ -3,12 +3,6 @@
 /.idea/
 # Generated code
 /docs/
-/gramjs/tl/functions/
-/gramjs/tl/types/
-/gramjs/tl/patched/
-/gramjs/tl/AllTLObjects.ts
-/gramjs/errors/RPCErrorList.ts
-/dist/
 
 # User session
 *.session
@@ -27,5 +21,4 @@ settings
 .babelrc
 .eslintignore
 .eslintrc.json
-webpack.config.babel.js
 /examples/

+ 1 - 1
gramjs/Version.ts

@@ -1 +1 @@
-export const version = "0.0.5";
+export const version = "1.0.2-alpha.2";

+ 0 - 0
static/api.tl → gramjs/static/api.tl


+ 0 - 0
static/schema.tl → gramjs/static/schema.tl


+ 1 - 1
gramjs/tl/custom/chatGetter.ts

@@ -6,7 +6,7 @@ import PeerUser = Api.PeerUser;
 import PeerChannel = Api.PeerChannel;
 import PeerChat = Api.PeerChat;
 
-interface ChatGetterConstructorParams {
+export interface ChatGetterConstructorParams {
     chatPeer?: EntityLike;
     inputChat?: EntityLike;
     chat?: EntityLike;

+ 3 - 2
package.json

@@ -1,8 +1,9 @@
 {
   "name": "telegram",
-  "version": "1.0.0-alpha.2",
+  "version": "1.0.2-alpha.2",
   "description": "NodeJS MTProto API Telegram client library,",
-  "main": "index.js",
+  "main": "dist/index.js",
+  "types": "dist/index.d.ts",
   "scripts": {
     "test": "jest",
     "postinstall": "npm run tsc",

+ 3 - 1
tsconfig.json

@@ -10,7 +10,7 @@
     ],
     "inlineSourceMap": true,
     "downlevelIteration": true,
-    "allowJs": false,
+    "allowJs": true,
     "skipLibCheck": true,
     "esModuleInterop": true,
     "allowSyntheticDefaultImports": true,
@@ -18,6 +18,8 @@
     "forceConsistentCasingInFileNames": true,
     "moduleResolution": "node",
     "resolveJsonModule": true,
+    "declaration": true,
+    "outDir": "./dist"
   },
   "exclude": [
     "gramjs/tl/types-generator",