@maka/maka-cli 4.7.11 → 4.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/.eslintrc.json +29 -29
  2. package/.mocharc.json +3 -3
  3. package/.vs/VSWorkspaceState.json +12 -0
  4. package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
  5. package/.vs/maka-cli-src/FileContentIndex/69d2de39-b193-48d9-b520-96bdb73b7b61.vsidx +0 -0
  6. package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
  7. package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
  8. package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
  9. package/.vs/maka-cli-src/config/applicationhost.config +1016 -0
  10. package/.vs/maka-cli-src/v17/.wsuo +0 -0
  11. package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
  12. package/.vs/slnx.sqlite +0 -0
  13. package/README.md +21 -21
  14. package/bundle/obf/package.json +127 -127
  15. package/bundle/obf/src/README.md +21 -21
  16. package/bundle/obf/src/command.js +1 -1
  17. package/bundle/obf/src/commands/_index.js +1 -1
  18. package/bundle/obf/src/commands/ai.js +1 -1
  19. package/bundle/obf/src/commands/aws/_index.js +1 -1
  20. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  21. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  23. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/build/_index.js +1 -1
  34. package/bundle/obf/src/commands/build/build.js +1 -1
  35. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  36. package/bundle/obf/src/commands/create.js +1 -1
  37. package/bundle/obf/src/commands/debug.js +1 -1
  38. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  39. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  40. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  41. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  42. package/bundle/obf/src/commands/game/_index.js +1 -1
  43. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  44. package/bundle/obf/src/commands/game/play.command.js +1 -1
  45. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  69. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  70. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  71. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  72. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  73. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  74. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  75. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  76. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  77. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  78. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  79. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  80. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  81. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  82. package/bundle/obf/src/commands/generate.js +1 -1
  83. package/bundle/obf/src/commands/get/_index.js +1 -1
  84. package/bundle/obf/src/commands/get/get.command.js +1 -1
  85. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/help.js +1 -1
  89. package/bundle/obf/src/commands/install.js +1 -1
  90. package/bundle/obf/src/commands/jsdoc.js +1 -1
  91. package/bundle/obf/src/commands/lint.js +1 -1
  92. package/bundle/obf/src/commands/login.js +1 -1
  93. package/bundle/obf/src/commands/logout.js +1 -1
  94. package/bundle/obf/src/commands/logs.js +1 -1
  95. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  96. package/bundle/obf/src/commands/murder.js +1 -1
  97. package/bundle/obf/src/commands/proxy.js +1 -1
  98. package/bundle/obf/src/commands/reconfig.js +1 -1
  99. package/bundle/obf/src/commands/run/_index.js +1 -1
  100. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/run/run.command.js +1 -1
  102. package/bundle/obf/src/commands/set/_index.js +1 -1
  103. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  104. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  105. package/bundle/obf/src/commands/set/set.command.js +1 -1
  106. package/bundle/obf/src/commands/ssh.js +1 -1
  107. package/bundle/obf/src/commands/ssl.js +1 -1
  108. package/bundle/obf/src/commands/test.js +1 -1
  109. package/bundle/obf/src/commands/version.js +1 -1
  110. package/bundle/obf/src/error.js +1 -1
  111. package/bundle/obf/src/exec.js +1 -1
  112. package/bundle/obf/src/generator.js +1 -1
  113. package/bundle/obf/src/generators/_index.js +1 -1
  114. package/bundle/obf/src/generators/api.js +1 -1
  115. package/bundle/obf/src/generators/collection.js +1 -1
  116. package/bundle/obf/src/generators/component.js +1 -1
  117. package/bundle/obf/src/generators/config.js +1 -1
  118. package/bundle/obf/src/generators/dbc.js +1 -1
  119. package/bundle/obf/src/generators/dockerfile.js +1 -1
  120. package/bundle/obf/src/generators/hook.js +1 -1
  121. package/bundle/obf/src/generators/kits/_index.js +1 -1
  122. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/kit.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  129. package/bundle/obf/src/generators/layout.js +1 -1
  130. package/bundle/obf/src/generators/maka.gen.js +1 -1
  131. package/bundle/obf/src/generators/methods.js +1 -1
  132. package/bundle/obf/src/generators/package.js +1 -1
  133. package/bundle/obf/src/generators/page.js +1 -1
  134. package/bundle/obf/src/generators/publish.js +1 -1
  135. package/bundle/obf/src/generators/route.js +1 -1
  136. package/bundle/obf/src/generators/service.js +1 -1
  137. package/bundle/obf/src/generators/services/_index.js +1 -1
  138. package/bundle/obf/src/generators/services/openssl.js +1 -1
  139. package/bundle/obf/src/generators/services/translation.js +1 -1
  140. package/bundle/obf/src/maka.js +1 -1
  141. package/bundle/obf/src/templates/meteor/api/api.js +11 -11
  142. package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
  143. package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
  144. package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
  145. package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
  146. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
  147. package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
  148. package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
  149. package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
  150. package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
  151. package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
  152. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
  153. package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
  154. package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
  155. package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
  156. package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
  157. package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
  158. package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
  159. package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
  160. package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
  161. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
  162. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
  163. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
  164. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
  165. package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
  166. package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
  167. package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
  168. package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
  169. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
  170. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
  171. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
  172. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
  173. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
  174. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
  175. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
  176. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
  177. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
  178. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
  179. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
  180. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
  181. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
  182. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
  183. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
  184. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
  185. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
  186. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
  187. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
  188. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
  189. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
  190. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
  191. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
  192. package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
  193. package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
  194. package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
  195. package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
  196. package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
  197. package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
  198. package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
  199. package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
  200. package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
  201. package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
  202. package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
  203. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
  204. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
  205. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
  206. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
  207. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
  208. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
  209. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
  210. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
  211. package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
  212. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
  213. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
  214. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
  215. package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
  216. package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
  217. package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
  218. package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
  219. package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
  220. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
  221. package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
  222. package/bundle/obf/src/templates/meteor/config/process.env +5 -5
  223. package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
  224. package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
  225. package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
  226. package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
  227. package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
  228. package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
  229. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
  230. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
  231. package/bundle/obf/src/templates/meteor/method/method.js +48 -48
  232. package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
  233. package/bundle/obf/src/templates/meteor/package/package.js +37 -37
  234. package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
  235. package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
  236. package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
  237. package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
  238. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
  239. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
  240. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
  241. package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
  242. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
  243. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
  244. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
  245. package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
  246. package/bundle/obf/src/templates/meteor/project/README.md +1 -1
  247. package/bundle/obf/src/templates/meteor/project/build/README +4 -4
  248. package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
  249. package/bundle/obf/src/templates/meteor/project/package.json +20 -20
  250. package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
  251. package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
  252. package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
  253. package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
  254. package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
  255. package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
  256. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
  257. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
  258. package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
  259. package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
  260. package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
  261. package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
  262. package/bundle/obf/src/templates/meteor/template/template.css +3 -3
  263. package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
  264. package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
  265. package/bundle/obf/src/templates/meteor/template/template.html +5 -5
  266. package/bundle/obf/src/templates/meteor/template/template.js +20 -20
  267. package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
  268. package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
  269. package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
  270. package/bundle/obf/src/templates/react/component/component.css +6 -6
  271. package/bundle/obf/src/templates/react/component/component.css.less +6 -6
  272. package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
  273. package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
  274. package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
  275. package/bundle/obf/src/templates/react/hook/hook.css +3 -3
  276. package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
  277. package/bundle/obf/src/templates/react/hook/hook.js +1 -1
  278. package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
  279. package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
  280. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
  281. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
  282. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
  283. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
  284. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
  285. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
  286. package/bundle/obf/src/templates/react/route/route.js +8 -8
  287. package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
  288. package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
  289. package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
  290. package/bundle/obf/src/templates/react/test/test.js +1 -1
  291. package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
  292. package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
  293. package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
  294. package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
  295. package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
  296. package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
  297. package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
  298. package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
  299. package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
  300. package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
  301. package/bundle/obf/src/tool.js +1 -1
  302. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  303. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  304. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  305. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  306. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  307. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  308. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  309. package/bundle/obf/src/tools/https/https.class.js +1 -1
  310. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  311. package/bundle/obf/src/tools/log/log.class.js +1 -1
  312. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  313. package/bundle/obf/src/tools/options/options.class.js +1 -1
  314. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  315. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  316. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  317. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  318. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  319. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  320. package/jest.config.js +11 -11
  321. package/obfuscator.json +29 -29
  322. package/package.json +127 -127
  323. package/tsconfig.json +23 -23
@@ -1,955 +1,955 @@
1
- /**
2
- * These are the common (for client and server) modules and interfaces that can't be automatically generated from the Meteor data.js file
3
- */
4
-
5
- // Needed for testing.
6
- declare let require: Function;
7
- declare let beforeEach: Function;
8
- declare let afterEach: Function;
9
- declare let it: Function;
10
- declare let describe: Function;
11
- declare let assert: any;
12
- declare let equal: any;
13
- declare let Map: MapConstructor;
14
- declare let Meteor: any;
15
-
16
- // TODO: These should be worked out ...
17
- declare module 'meteor/react-meteor-data';
18
- declare module 'meteor/maka:rest';
19
- declare module 'meteor/mdg:validated-method';
20
- declare module 'meteor/apollo';
21
- declare module 'meteor/server-render';
22
- declare module 'meteor/underscore';
23
- declare module 'meteor/ddp-rate-limiter';
24
- declare module 'meteor/check';
25
- declare module 'meteor/webapp';
26
-
27
- interface EJSONable {
28
- [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSON.CustomType;
29
- }
30
- interface JSONable {
31
- [key: string]: number | string | boolean | Object | number[] | string[] | Object[];
32
- }
33
- type EJSON = EJSONable
34
-
35
- declare module "meteor/match" {
36
- export namespace Match {
37
- export var Any: any;
38
- export var String: any;
39
- export var Integer: any;
40
- export var Boolean: any;
41
- export var undefined: any;
42
- //function null(); // not allowed in TypeScript
43
- export var Object: any;
44
- export function Optional(pattern: any): boolean;
45
- export function ObjectIncluding(dico: any): boolean;
46
- export function OneOf(...patterns: any[]): any;
47
- export function Where(condition: any): any;
48
- }
49
- }
50
-
51
-
52
- declare module "meteor/meteor" {
53
- export namespace Meteor {
54
- export var isDevelopment: any;
55
- export var isServer: any;
56
- export var isClient: any;
57
-
58
- interface UserEmail {
59
- address: string;
60
- verified: boolean;
61
- }
62
-
63
- interface User {
64
- _id?: string;
65
- username?: string;
66
- emails?: Meteor.UserEmail[];
67
- createdAt?: number;
68
- profile?: any;
69
- services?: any;
70
- }
71
-
72
- enum StatusEnum {
73
- connected,
74
- connecting,
75
- failed,
76
- waiting,
77
- offline
78
- }
79
-
80
- interface LiveQueryHandle {
81
- stop(): void;
82
- }
83
- }
84
- }
85
-
86
- declare module "meteor/ddp" {
87
- import { Meteor } from "meteor/meteor";
88
-
89
- export namespace DDP {
90
- interface DDPStatic {
91
- subscribe(name: string, ...rest: any[]): Meteor.SubscriptionHandle;
92
- call(method: string, ...parameters: any[]): void;
93
- apply(method: string, ...parameters: any[]): void;
94
- methods(IMeteorMethodsDictionary: any): any;
95
- status(): DDPStatus;
96
- reconnect(): void;
97
- disconnect(): void;
98
- onReconnect(): void;
99
- }
100
-
101
- interface DDPStatus {
102
- connected: boolean;
103
- status: Meteor.StatusEnum;
104
- retryCount: number;
105
- //To turn this into an interval until the next reconnection, use retryTime - (new Date()).getTime()
106
- retryTime?: number;
107
- reason?: string;
108
- }
109
- }
110
- }
111
-
112
- declare module "meteor/mongo" {
113
- export namespace Mongo {
114
- interface Selector {
115
- [key: string]: any;
116
- }
117
- type Selector = Object
118
- interface Modifier { }
119
- interface SortSpecifier { }
120
- interface FieldSpecifier {
121
- [id: string]: number;
122
- }
123
- }
124
- }
125
-
126
- declare module "meteor/http" {
127
- export namespace HTTP {
128
-
129
- interface HTTPRequest {
130
- content?: string;
131
- data?: any;
132
- query?: string;
133
- params?: { [id: string]: string };
134
- auth?: string;
135
- headers?: { [id: string]: string };
136
- timeout?: number;
137
- followRedirects?: boolean;
138
- }
139
-
140
- interface HTTPResponse {
141
- statusCode?: number;
142
- headers?: { [id: string]: string };
143
- content?: string;
144
- data?: any;
145
- }
146
-
147
- function call(method: string, url: string, options?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
148
- function del(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
149
- function get(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
150
- function post(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
151
- function put(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
152
- }
153
- }
154
-
155
- declare module "meteor/random" {
156
- export namespace Random {
157
- function id(numberOfChars?: number): string;
158
- function secret(numberOfChars?: number): string;
159
- function fraction(): number;
160
- function hexString(numberOfDigits: number): string; // @param numberOfDigits, @returns a random hex string of the given length
161
- function choice(array: any[]): string; // @param array, @return a random element in array
162
- function choice(str: string): string; // @param str, @return a random char in str
163
- }
164
- }
165
-
166
- /**
167
- * These are the client modules and interfaces that can't be automatically generated from the Meteor data.js file
168
- */
169
-
170
- declare module "meteor/meteor" {
171
- import { Blaze } from "meteor/blaze";
172
-
173
- export namespace Meteor {
174
- /** Start definitions for Template **/
175
- interface Event {
176
- type: string;
177
- target: HTMLElement;
178
- currentTarget: HTMLElement;
179
- which: number;
180
- stopPropagation(): void;
181
- stopImmediatePropagation(): void;
182
- preventDefault(): void;
183
- isPropagationStopped(): boolean;
184
- isImmediatePropagationStopped(): boolean;
185
- isDefaultPrevented(): boolean;
186
- }
187
-
188
- interface EventHandlerFunction extends Function {
189
- (event?: Meteor.Event, templateInstance?: Blaze.TemplateInstance): void;
190
- }
191
-
192
- interface EventMap {
193
- [id: string]: Meteor.EventHandlerFunction;
194
- }
195
- /** End definitions for Template **/
196
-
197
- interface LoginWithExternalServiceOptions {
198
- requestPermissions?: string[];
199
- requestOfflineToken?: boolean;
200
- forceApprovalPrompt?: boolean;
201
- userEmail?: string;
202
- loginStyle?: string;
203
- }
204
-
205
- function loginWithMeteorDeveloperAccount(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
206
- function loginWithFacebook(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
207
- function loginWithGithub(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
208
- function loginWithGoogle(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
209
- function loginWithMeetup(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
210
- function loginWithTwitter(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
211
- function loginWithWeibo(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
212
-
213
- interface SubscriptionHandle {
214
- stop(): void;
215
- ready(): boolean;
216
- }
217
- }
218
- }
219
-
220
- declare module "meteor/blaze" {
221
- export namespace Blaze {
222
- interface View {
223
- name: string;
224
- parentView: Blaze.View;
225
- isCreated: boolean;
226
- isRendered: boolean;
227
- isDestroyed: boolean;
228
- renderCount: number;
229
- autorun(runFunc: Function): void;
230
- onViewCreated(func: Function): void;
231
- onViewReady(func: Function): void;
232
- onViewDestroyed(func: Function): void;
233
- firstNode(): Node;
234
- lastNode(): Node;
235
- template: Blaze.Template;
236
- templateInstance(): any;
237
- }
238
- interface Template {
239
- viewName: string;
240
- renderFunction: Function;
241
- constructView(): Blaze.View;
242
- }
243
- }
244
- }
245
-
246
- declare module "meteor/browser-policy" {
247
- export namespace BrowserPolicy {
248
-
249
- interface framing {
250
- disallow(): void;
251
- restrictToOrigin(origin: string): void;
252
- allowAll(): void;
253
- }
254
- interface content {
255
- allowEval(): void;
256
- allowInlineStyles(): void;
257
- allowInlineScripts(): void;
258
- allowSameOriginForAll(): void;
259
- allowDataUrlForAll(): void;
260
- allowOriginForAll(origin: string): void;
261
- allowImageOrigin(origin: string): void;
262
- allowFrameOrigin(origin: string): void;
263
- allowContentTypeSniffing(): void;
264
- allowAllContentOrigin(): void;
265
- allowAllContentDataUrl(): void;
266
- allowAllContentSameOrigin(): void;
267
-
268
- disallowAll(): void;
269
- disallowInlineStyles(): void;
270
- disallowEval(): void;
271
- disallowInlineScripts(): void;
272
- disallowFont(): void;
273
- disallowObject(): void;
274
- disallowAllContent(): void;
275
- //TODO: add the basic content types
276
- // allow<content type>Origin(origin)
277
- // allow<content type>DataUrl()
278
- // allow<content type>SameOrigin()
279
- // disallow<content type>()
280
- }
281
- }
282
- }
283
-
284
-
285
- /**
286
- * These are the server modules and interfaces that can't be automatically generated from the Meteor data.js file
287
- */
288
-
289
- declare module "meteor/meteor" {
290
- export namespace Meteor {
291
- interface EmailFields {
292
- subject?: Function;
293
- text?: Function;
294
- }
295
-
296
- interface EmailTemplates {
297
- from: string;
298
- siteName: string;
299
- resetPassword: Meteor.EmailFields;
300
- enrollAccount: Meteor.EmailFields;
301
- verifyEmail: Meteor.EmailFields;
302
- }
303
-
304
- interface Connection {
305
- id: string;
306
- close: Function;
307
- onClose: Function;
308
- clientAddress: string;
309
- httpHeaders: Object;
310
- }
311
- }
312
- }
313
-
314
- declare module "meteor/mongo" {
315
- export namespace Mongo {
316
- interface AllowDenyOptions {
317
- insert?: (userId: string, doc: any) => boolean;
318
- update?: (userId: string, doc: any, fieldNames: string[], modifier: any) => boolean;
319
- remove?: (userId: string, doc: any) => boolean;
320
- fetch?: string[];
321
- transform?: Function;
322
- }
323
- }
324
- }
325
-
326
- interface MailComposerOptions {
327
- escapeSMTP: boolean;
328
- encoding: string;
329
- charset: string;
330
- keepBcc: boolean;
331
- forceEmbeddedImages: boolean;
332
- }
333
-
334
- declare var MailComposer: MailComposerStatic;
335
- interface MailComposerStatic {
336
- new (options: MailComposerOptions): MailComposer;
337
- }
338
- interface MailComposer {
339
- addHeader(name: string, value: string): void;
340
- setMessageOption(from: string, to: string, body: string, html: string): void;
341
- streamMessage(): void;
342
- pipe(stream: any /** fs.WriteStream **/): void;
343
- }
344
- /**
345
- * These are the modules and interfaces for packages that can't be automatically generated from the Meteor data.js file
346
- */
347
-
348
- interface ILengthAble {
349
- length: number;
350
- }
351
-
352
- interface ITinytestAssertions {
353
- ok(doc: Object): void;
354
- expect_fail(): void;
355
- fail(doc: Object): void;
356
- runId(): string;
357
- equal<T>(actual: T, expected: T, message?: string, not?: boolean): void;
358
- notEqual<T>(actual: T, expected: T, message?: string): void;
359
- instanceOf(obj: Object, klass: Function, message?: string): void;
360
- notInstanceOf(obj: Object, klass: Function, message?: string): void;
361
- matches(actual: any, regexp: RegExp, message?: string): void;
362
- notMatches(actual: any, regexp: RegExp, message?: string): void;
363
- throws(f: Function, expected?: string | RegExp): void;
364
- isTrue(v: boolean, msg?: string): void;
365
- isFalse(v: boolean, msg?: string): void;
366
- isNull(v: any, msg?: string): void;
367
- isNotNull(v: any, msg?: string): void;
368
- isUndefined(v: any, msg?: string): void;
369
- isNotUndefined(v: any, msg?: string): void;
370
- isNan(v: any, msg?: string): void;
371
- isNotNan(v: any, msg?: string): void;
372
- include<T>(s: Array<T> | Object | string, value: any, msg?: string, not?: boolean): void;
373
-
374
- notInclude<T>(s: Array<T> | Object | string, value: any, msg?: string, not?: boolean): void;
375
- length(obj: ILengthAble, expected_length: number, msg?: string): void;
376
- _stringEqual(actual: string, expected: string, msg?: string): void;
377
- }
378
-
379
- declare module "meteor/tiny-test" {
380
- export namespace Tinytest {
381
- function add(description: string, func: (test: ITinytestAssertions) => void): void;
382
- function addAsync(description: string, func: (test: ITinytestAssertions) => void): void;
383
- }
384
- }
385
-
386
-
387
- // Kept in for backwards compatibility
388
- declare module "meteor/meteor" {
389
- export namespace Meteor {
390
- interface Tinytest {
391
- add(description: string, func: (test: ITinytestAssertions) => void): void;
392
- addAsync(description: string, func: (test: ITinytestAssertions) => void): void;
393
- }
394
- }
395
- }
396
-
397
- declare module "meteor/accounts-base" {
398
- import { Meteor } from "meteor/meteor";
399
-
400
- export namespace Accounts {
401
- function addEmail(userId: string, newEmail: string, verified?: boolean): void;
402
- function changePassword(oldPassword: string, newPassword: string, callback?: Function): void;
403
- function createUser(options: {
404
- username?: string;
405
- email?: string;
406
- password?: string;
407
- profile?: Object;
408
- }, callback?: Function): string;
409
- var emailTemplates: Meteor.EmailTemplates;
410
- function findUserByEmail(email: string): Object;
411
- function findUserByUsername(username: string): Object;
412
- function forgotPassword(options: {
413
- email?: string;
414
- }, callback?: Function): void;
415
- function onEmailVerificationLink(callback: Function): void;
416
- function onEnrollmentLink(callback: Function): void;
417
- function onResetPasswordLink(callback: Function): void;
418
- function removeEmail(userId: string, email: string): void;
419
- function resetPassword(token: string, newPassword: string, callback?: Function): void;
420
- function sendEnrollmentEmail(userId: string, email?: string): void;
421
- function sendResetPasswordEmail(userId: string, email?: string): void;
422
- function sendVerificationEmail(userId: string, email?: string): void;
423
- function setPassword(userId: string, newPassword: string, options?: {
424
- logout?: Object;
425
- }): void;
426
- function setUsername(userId: string, newUsername: string): void;
427
- var ui: {
428
- config(options: {
429
- requestPermissions?: Object;
430
- requestOfflineToken?: Object;
431
- forceApprovalPrompt?: Object;
432
- passwordSignupFields?: string;
433
- }): void;
434
- };
435
- function verifyEmail(token: string, callback?: Function): void;
436
- function config(options: {
437
- sendVerificationEmail?: boolean;
438
- forbidClientAccountCreation?: boolean;
439
- restrictCreationByEmailDomain?: string | Function;
440
- loginExpirationInDays?: number;
441
- oauthSecretKey?: string;
442
- }): void;
443
- function onLogin(func: Function): { stop: () => void };
444
- function onLoginFailure(func: Function): { stop: () => void };
445
- function user(): Meteor.User;
446
- function userId(): string;
447
- function loggingIn(): boolean;
448
- function logout(callback?: Function): void;
449
- function logoutOtherClients(callback?: Function): void;
450
- function onCreateUser(func: Function): void;
451
- function validateLoginAttempt(func: Function): { stop: () => void };
452
- function validateNewUser(func: Function): boolean;
453
- }
454
- }
455
-
456
- declare namespace App {
457
- function accessRule(domainRule: string, options?: {
458
- launchExternal?: boolean;
459
- }): void;
460
- function configurePlugin(id: string, config: Object): void;
461
- function icons(icons: Object): void;
462
- function info(options: {
463
- id?: string;
464
- version?: string;
465
- name?: string;
466
- description?: string;
467
- author?: string;
468
- email?: string;
469
- website?: string;
470
- }): void;
471
- function launchScreens(launchScreens: Object): void;
472
- function setPreference(name: string, value: string, platform?: string): void;
473
- }
474
-
475
- declare namespace Assets {
476
- function getBinary(assetPath: string, asyncCallback?: Function): EJSON;
477
- function getText(assetPath: string, asyncCallback?: Function): string;
478
- }
479
-
480
- declare module "meteor/blaze" {
481
- import { Meteor } from "meteor/meteor";
482
- export namespace Blaze {
483
- function Each(argFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
484
- function If(conditionFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
485
- function Let(bindings: Function, contentFunc: Function): Blaze.View;
486
- var Template: TemplateStatic;
487
- interface TemplateStatic {
488
- new (viewName?: string, renderFunction?: Function): Template;
489
- // It should be [templateName: string]: TemplateInstance but this is not possible -- user will need to cast to TemplateInstance
490
- [templateName: string]: any | Template; // added "any" to make it work
491
- head: Template;
492
- find(selector: string): Blaze.Template;
493
- findAll(selector: string): Blaze.Template[];
494
- $: any;
495
- }
496
- interface Template {
497
- }
498
-
499
- var TemplateInstance: TemplateInstanceStatic;
500
- interface TemplateInstanceStatic {
501
- new (view: Blaze.View): TemplateInstance;
502
- }
503
- interface TemplateInstance {
504
- $(selector: string): any;
505
- autorun(runFunc: Function): Object;
506
- data: Object;
507
- find(selector?: string): Blaze.TemplateInstance;
508
- findAll(selector: string): Blaze.TemplateInstance[];
509
- firstNode: Object;
510
- lastNode: Object;
511
- subscribe(name: string, ...args: any[]): Meteor.SubscriptionHandle;
512
- subscriptionsReady(): boolean;
513
- view: Object;
514
- }
515
-
516
- function Unless(conditionFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
517
- var View: ViewStatic;
518
- interface ViewStatic {
519
- new (name?: string, renderFunction?: Function): View;
520
- }
521
- interface View {
522
- }
523
-
524
- function With(data: Object | Function, contentFunc: Function): Blaze.View;
525
- var currentView: Blaze.View;
526
- function getData(elementOrView?: HTMLElement | Blaze.View): Object;
527
- function getView(element?: HTMLElement): Blaze.View;
528
- function isTemplate(value: any): boolean;
529
- function remove(renderedView: Blaze.View): void;
530
- function render(templateOrView: Template | Blaze.View, parentNode: Node, nextNode?: Node, parentView?: Blaze.View): Blaze.View;
531
- function renderWithData(templateOrView: Template | Blaze.View, data: Object | Function, parentNode: Node, nextNode?: Node, parentView?: Blaze.View): Blaze.View;
532
- function toHTML(templateOrView: Template | Blaze.View): string;
533
- function toHTMLWithData(templateOrView: Template | Blaze.View, data: Object | Function): string;
534
- }
535
- }
536
-
537
- declare namespace Cordova {
538
- function depends(dependencies: { [id: string]: string }): void;
539
- }
540
-
541
- declare module "meteor/ddp" {
542
- export namespace DDP {
543
- function connect(url: string): DDP.DDPStatic;
544
- }
545
- }
546
-
547
- declare namespace DDPCommon {
548
- function MethodInvocation(options: {
549
- }): any;
550
- }
551
-
552
- declare namespace EJSON {
553
- var CustomType: CustomTypeStatic;
554
- interface CustomTypeStatic {
555
- new (): CustomType;
556
- }
557
- interface CustomType {
558
- clone(): EJSON.CustomType;
559
- equals(other: Object): boolean;
560
- toJSONValue(): JSONable;
561
- typeName(): string;
562
- }
563
-
564
- function addType(name: string, factory: (val: JSONable) => EJSON.CustomType): void;
565
- function clone<T>(val: T): T;
566
- function equals(a: EJSON, b: EJSON, options?: {
567
- keyOrderSensitive?: boolean;
568
- }): boolean;
569
- function fromJSONValue(val: JSONable): any;
570
- function isBinary(x: Object): boolean;
571
- var newBinary: any;
572
- function parse(str: string): EJSON;
573
- function stringify(val: EJSON, options?: {
574
- indent?: boolean | number | string;
575
- canonical?: boolean;
576
- }): string;
577
- function toJSONValue(val: EJSON): JSONable;
578
- }
579
-
580
- declare namespace Match {
581
- function test(value: any, pattern: any): boolean;
582
- }
583
-
584
- declare module "meteor/meteor" {
585
- import { Mongo } from "meteor/mongo";
586
-
587
- export namespace Meteor {
588
- var Error: ErrorStatic;
589
- interface ErrorStatic {
590
- new (error: string | number, reason?: string, details?: string): Error;
591
- }
592
- interface Error {
593
- error: string | number;
594
- reason?: string;
595
- details?: string;
596
- }
597
- function absoluteUrl(path?: string, options?: {
598
- secure?: boolean;
599
- replaceLocalhost?: boolean;
600
- rootUrl?: string;
601
- }): string;
602
- function apply(name: string, args: EJSONable[], options?: {
603
- wait?: boolean;
604
- onResultReceived?: Function;
605
- }, asyncCallback?: Function): any;
606
- function call(name: string, ...args: any[]): any;
607
- function clearInterval(id: number): void;
608
- function clearTimeout(id: number): void;
609
- function disconnect(): void;
610
- var isClient: any;
611
- var isCordova: boolean;
612
- var isServer: any;
613
- function loggingIn(): boolean;
614
- function loginWith<ExternalService>(options?: {
615
- requestPermissions?: string[];
616
- requestOfflineToken?: boolean;
617
- loginUrlParameters?: Object;
618
- userEmail?: string;
619
- loginStyle?: string;
620
- redirectUrl?: string;
621
- }, callback?: Function): void;
622
- function loginWithPassword(user: Object | string, password: string, callback?: Function): void;
623
- function logout(callback?: Function): void;
624
- function logoutOtherClients(callback?: Function): void;
625
- function methods(methods: Object): void;
626
- function onConnection(callback: Function): void;
627
- function publish(name: string, func: Function): void;
628
- function reconnect(): void;
629
- var release: string;
630
- function setInterval(func: Function, delay: number): number;
631
- function setTimeout(func: Function, delay: number): number;
632
- var settings: { [id: string]: any };
633
- function startup(func: Function): void;
634
- function status(): Meteor.StatusEnum;
635
- function subscribe(name: string, ...args: any[]): Meteor.SubscriptionHandle;
636
- function user(): Meteor.User;
637
- function userId(): string;
638
- var users: Mongo.Collection<User>;
639
- function wrapAsync(func: Function, context?: Object): any;
640
- }
641
- }
642
-
643
- declare module "meteor/mongo" {
644
- import { Meteor } from "meteor/meteor";
645
-
646
- export namespace Mongo {
647
- var Collection: CollectionStatic;
648
- interface CollectionStatic {
649
- new <T>(name: string, options?: {
650
- connection?: Object;
651
- idGeneration?: string;
652
- transform?: Function;
653
- }): Collection<T>;
654
- }
655
- interface Collection<T> {
656
- allow(options: {
657
- insert?: (userId: string, doc: T) => boolean;
658
- update?: (userId: string, doc: T, fieldNames: string[], modifier: any) => boolean;
659
- remove?: (userId: string, doc: T) => boolean;
660
- fetch?: string[];
661
- transform?: Function;
662
- }): boolean;
663
- deny(options: {
664
- insert?: (userId: string, doc: T) => boolean;
665
- update?: (userId: string, doc: T, fieldNames: string[], modifier: any) => boolean;
666
- remove?: (userId: string, doc: T) => boolean;
667
- fetch?: string[];
668
- transform?: Function;
669
- }): boolean;
670
- find(selector?: Mongo.Selector | Mongo.ObjectID | string, options?: {
671
- sort?: Mongo.SortSpecifier;
672
- skip?: number;
673
- limit?: number;
674
- fields?: Mongo.FieldSpecifier;
675
- reactive?: boolean;
676
- transform?: Function;
677
- }): Mongo.Cursor<T>;
678
- findOne(selector?: Mongo.Selector | Mongo.ObjectID | string, options?: {
679
- sort?: Mongo.SortSpecifier;
680
- skip?: number;
681
- fields?: Mongo.FieldSpecifier;
682
- reactive?: boolean;
683
- transform?: Function;
684
- }): T;
685
- insert(doc: T, callback?: Function): string;
686
- rawCollection(): any;
687
- rawDatabase(): any;
688
- remove(selector: Mongo.Selector | Mongo.ObjectID | string, callback?: Function): number;
689
- update(selector: Mongo.Selector | Mongo.ObjectID | string, modifier: Mongo.Modifier, options?: {
690
- multi?: boolean;
691
- upsert?: boolean;
692
- }, callback?: Function): number;
693
- upsert(selector: Mongo.Selector | Mongo.ObjectID | string, modifier: Mongo.Modifier, options?: {
694
- multi?: boolean;
695
- }, callback?: Function): { numberAffected?: number; insertedId?: string; };
696
- _ensureIndex(indexName: string, options?: { [key: string]: any }): void;
697
- }
698
-
699
- var Cursor: CursorStatic;
700
- interface CursorStatic {
701
- new <T>(): Cursor<T>;
702
- }
703
- interface Cursor<T> {
704
- count(): number;
705
- fetch(): Array<T>;
706
- forEach(callback: <T>(doc: T, index: number, cursor: Mongo.Cursor<T>) => void, thisArg?: any): void;
707
- map<U>(callback: (doc: T, index: number, cursor: Mongo.Cursor<T>) => U, thisArg?: any): Array<U>;
708
- observe(callbacks: Object): Meteor.LiveQueryHandle;
709
- observeChanges(callbacks: Object): Meteor.LiveQueryHandle;
710
- }
711
-
712
- var ObjectID: ObjectIDStatic;
713
- interface ObjectIDStatic {
714
- new (hexString?: string): ObjectID;
715
- }
716
- interface ObjectID {
717
- }
718
-
719
- }
720
- }
721
-
722
- declare namespace Npm {
723
- function depends(dependencies: { [id: string]: string }): void;
724
- function require(name: string): any;
725
- }
726
-
727
- declare namespace Package {
728
- function describe(options: {
729
- summary?: string;
730
- version?: string;
731
- name?: string;
732
- git?: string;
733
- documentation?: string;
734
- debugOnly?: boolean;
735
- prodOnly?: boolean;
736
- }): void;
737
- function onTest(func: Function): void;
738
- function onUse(func: Function): void;
739
- function registerBuildPlugin(options?: {
740
- name?: string;
741
- use?: string | string[];
742
- sources?: string[];
743
- npmDependencies?: Object;
744
- }): void;
745
- }
746
-
747
- declare module "meteor/tracker" {
748
- export namespace Tracker {
749
- function Computation(): void;
750
- interface Computation {
751
- firstRun: boolean;
752
- invalidate(): void;
753
- invalidated: boolean;
754
- onInvalidate(callback: Function): void;
755
- onStop(callback: Function): void;
756
- stop(): void;
757
- stopped: boolean;
758
- }
759
-
760
- var Dependency: DependencyStatic;
761
- interface DependencyStatic {
762
- new (): Dependency;
763
- }
764
- interface Dependency {
765
- changed(): void;
766
- depend(fromComputation?: Tracker.Computation): boolean;
767
- hasDependents(): boolean;
768
- }
769
-
770
- var active: boolean;
771
- function afterFlush(callback: Function): void;
772
- function autorun(runFunc: (computation: Tracker.Computation) => void, options?: {
773
- onError?: Function;
774
- }): Tracker.Computation;
775
- var currentComputation: Tracker.Computation;
776
- function flush(): void;
777
- function nonreactive(func: Function): void;
778
- function onInvalidate(callback: Function): void;
779
- }
780
- }
781
-
782
- declare namespace Session {
783
- function equals(key: string, value: string | number | boolean | any /** Null **/ | any /** Undefined **/): boolean;
784
- function get(key: string): any;
785
- function set(key: string, value: EJSONable | any /** Undefined **/): void;
786
- function setDefault(key: string, value: EJSONable | any /** Undefined **/): void;
787
- }
788
-
789
- declare module "meteor/http" {
790
- import { Meteor } from "meteor/meteor";
791
- export namespace HTTP {
792
-
793
- function call(method: string, url: string, options?: {
794
- content?: string;
795
- data?: Object;
796
- query?: string;
797
- params?: Object;
798
- auth?: string;
799
- headers?: Object;
800
- timeout?: number;
801
- followRedirects?: boolean;
802
- npmRequestOptions?: Object;
803
- beforeSend?: Function;
804
- }, asyncCallback?: Function): HTTP.HTTPResponse;
805
- function del(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
806
- function get(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
807
- function post(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
808
- function put(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
809
- }
810
- }
811
-
812
- declare module "meteor/email" {
813
- export namespace Email {
814
- function send(options: {
815
- from?: string;
816
- to?: string | string[];
817
- cc?: string | string[];
818
- bcc?: string | string[];
819
- replyTo?: string | string[];
820
- subject?: string;
821
- text?: string;
822
- html?: string;
823
- headers?: Object;
824
- attachments?: Object[];
825
- mailComposer?: MailComposer;
826
- }): void;
827
- }
828
- }
829
-
830
- declare var CompileStep: CompileStepStatic;
831
- interface CompileStepStatic {
832
- new (): CompileStep;
833
- }
834
- interface CompileStep {
835
- addAsset(options: {
836
- }, path: string, data: any /** Buffer **/ | string): any;
837
- addHtml(options: {
838
- section?: string;
839
- data?: string;
840
- }): any;
841
- addJavaScript(options: {
842
- path?: string;
843
- data?: string;
844
- sourcePath?: string;
845
- }): any;
846
- addStylesheet(options: {
847
- }, path: string, data: string, sourceMap: string): any;
848
- arch: any;
849
- declaredExports: any;
850
- error(options: {
851
- }, message: string, sourcePath?: string, line?: number, func?: string): any;
852
- fileOptions: any;
853
- fullInputPath: any;
854
- inputPath: any;
855
- inputSize: any;
856
- packageName: any;
857
- pathForSourceMap: any;
858
- read(n?: number): any;
859
- rootOutputPath: any;
860
- }
861
-
862
- declare var PackageAPI: PackageAPIStatic;
863
- interface PackageAPIStatic {
864
- new (): PackageAPI;
865
- }
866
- interface PackageAPI {
867
- addAssets(filenames: string | string[], architecture: string | string[]): void;
868
- addFiles(filenames: string | string[], architecture?: string | string[], options?: {
869
- bare?: boolean;
870
- }): void;
871
- export(exportedObjects: string | string[], architecture?: string | string[], exportOptions?: Object, testOnly?: boolean): void;
872
- imply(packageNames: string | string[], architecture?: string | string[]): void;
873
- use(packageNames: string | string[], architecture?: string | string[], options?: {
874
- weak?: boolean;
875
- unordered?: boolean;
876
- }): void;
877
- versionsFrom(meteorRelease: string | string[]): void;
878
- }
879
-
880
- declare module "meteor/reactive-var" {
881
- import { Meteor } from "meteor/meteor";
882
-
883
- export var ReactiveVar: ReactiveVarStatic;
884
- interface ReactiveVarStatic {
885
- new <T>(initialValue: T, equalsFunc?: Function): ReactiveVar<T>;
886
- }
887
- interface ReactiveVar<T> {
888
- get(): T;
889
- set(newValue: T): void;
890
- }
891
-
892
- export var Subscription: SubscriptionStatic;
893
- interface SubscriptionStatic {
894
- new (): Subscription;
895
- }
896
- interface Subscription {
897
- added(collection: string, id: string, fields: Object): void;
898
- changed(collection: string, id: string, fields: Object): void;
899
- connection: Meteor.Connection;
900
- error(error: Error): void;
901
- onStop(func: Function): void;
902
- ready(): void;
903
- removed(collection: string, id: string): void;
904
- stop(): void;
905
- userId: string;
906
- }
907
- }
908
-
909
- declare module "meteor/blaze" {
910
- import { Meteor } from "meteor/meteor";
911
-
912
- export var Template: TemplateStatic;
913
- interface TemplateStatic {
914
- new (): Template;
915
- // It should be [templateName: string]: TemplateInstance but this is not possible -- user will need to cast to TemplateInstance
916
- [templateName: string]: any | Template; // added "any" to make it work
917
- head: Template;
918
- find(selector: string): Blaze.Template;
919
- findAll(selector: string): Blaze.Template[];
920
- $: any;
921
- body: Template;
922
- currentData(): {};
923
- instance(): Blaze.TemplateInstance;
924
- parentData(numLevels?: number): {};
925
- registerHelper(name: string, helperFunction: Function): void;
926
- }
927
- interface Template {
928
- created: Function;
929
- destroyed: Function;
930
- events(eventMap: Meteor.EventMap): void;
931
- helpers(helpers: { [id: string]: any }): void;
932
- onCreated: Function;
933
- onDestroyed: Function;
934
- onRendered: Function;
935
- rendered: Function;
936
- }
937
- }
938
-
939
- declare function check(value: any, pattern: any): void;
940
- declare function execFileAsync(command: string, args?: any[], options?: {
941
- cwd?: Object;
942
- env?: Object;
943
- stdio?: any[] | string;
944
- destination?: any;
945
- waitForClose?: string;
946
- }): any;
947
- declare function execFileSync(command: string, args?: any[], options?: {
948
- cwd?: Object;
949
- env?: Object;
950
- stdio?: any[] | string;
951
- destination?: any;
952
- waitForClose?: string;
953
- }): string;
954
- declare function getExtension(): string;
955
-
1
+ /**
2
+ * These are the common (for client and server) modules and interfaces that can't be automatically generated from the Meteor data.js file
3
+ */
4
+
5
+ // Needed for testing.
6
+ declare let require: Function;
7
+ declare let beforeEach: Function;
8
+ declare let afterEach: Function;
9
+ declare let it: Function;
10
+ declare let describe: Function;
11
+ declare let assert: any;
12
+ declare let equal: any;
13
+ declare let Map: MapConstructor;
14
+ declare let Meteor: any;
15
+
16
+ // TODO: These should be worked out ...
17
+ declare module 'meteor/react-meteor-data';
18
+ declare module 'meteor/maka:rest';
19
+ declare module 'meteor/mdg:validated-method';
20
+ declare module 'meteor/apollo';
21
+ declare module 'meteor/server-render';
22
+ declare module 'meteor/underscore';
23
+ declare module 'meteor/ddp-rate-limiter';
24
+ declare module 'meteor/check';
25
+ declare module 'meteor/webapp';
26
+
27
+ interface EJSONable {
28
+ [key: string]: number | string | boolean | Object | number[] | string[] | Object[] | Date | Uint8Array | EJSON.CustomType;
29
+ }
30
+ interface JSONable {
31
+ [key: string]: number | string | boolean | Object | number[] | string[] | Object[];
32
+ }
33
+ type EJSON = EJSONable
34
+
35
+ declare module "meteor/match" {
36
+ export namespace Match {
37
+ export var Any: any;
38
+ export var String: any;
39
+ export var Integer: any;
40
+ export var Boolean: any;
41
+ export var undefined: any;
42
+ //function null(); // not allowed in TypeScript
43
+ export var Object: any;
44
+ export function Optional(pattern: any): boolean;
45
+ export function ObjectIncluding(dico: any): boolean;
46
+ export function OneOf(...patterns: any[]): any;
47
+ export function Where(condition: any): any;
48
+ }
49
+ }
50
+
51
+
52
+ declare module "meteor/meteor" {
53
+ export namespace Meteor {
54
+ export var isDevelopment: any;
55
+ export var isServer: any;
56
+ export var isClient: any;
57
+
58
+ interface UserEmail {
59
+ address: string;
60
+ verified: boolean;
61
+ }
62
+
63
+ interface User {
64
+ _id?: string;
65
+ username?: string;
66
+ emails?: Meteor.UserEmail[];
67
+ createdAt?: number;
68
+ profile?: any;
69
+ services?: any;
70
+ }
71
+
72
+ enum StatusEnum {
73
+ connected,
74
+ connecting,
75
+ failed,
76
+ waiting,
77
+ offline
78
+ }
79
+
80
+ interface LiveQueryHandle {
81
+ stop(): void;
82
+ }
83
+ }
84
+ }
85
+
86
+ declare module "meteor/ddp" {
87
+ import { Meteor } from "meteor/meteor";
88
+
89
+ export namespace DDP {
90
+ interface DDPStatic {
91
+ subscribe(name: string, ...rest: any[]): Meteor.SubscriptionHandle;
92
+ call(method: string, ...parameters: any[]): void;
93
+ apply(method: string, ...parameters: any[]): void;
94
+ methods(IMeteorMethodsDictionary: any): any;
95
+ status(): DDPStatus;
96
+ reconnect(): void;
97
+ disconnect(): void;
98
+ onReconnect(): void;
99
+ }
100
+
101
+ interface DDPStatus {
102
+ connected: boolean;
103
+ status: Meteor.StatusEnum;
104
+ retryCount: number;
105
+ //To turn this into an interval until the next reconnection, use retryTime - (new Date()).getTime()
106
+ retryTime?: number;
107
+ reason?: string;
108
+ }
109
+ }
110
+ }
111
+
112
+ declare module "meteor/mongo" {
113
+ export namespace Mongo {
114
+ interface Selector {
115
+ [key: string]: any;
116
+ }
117
+ type Selector = Object
118
+ interface Modifier { }
119
+ interface SortSpecifier { }
120
+ interface FieldSpecifier {
121
+ [id: string]: number;
122
+ }
123
+ }
124
+ }
125
+
126
+ declare module "meteor/http" {
127
+ export namespace HTTP {
128
+
129
+ interface HTTPRequest {
130
+ content?: string;
131
+ data?: any;
132
+ query?: string;
133
+ params?: { [id: string]: string };
134
+ auth?: string;
135
+ headers?: { [id: string]: string };
136
+ timeout?: number;
137
+ followRedirects?: boolean;
138
+ }
139
+
140
+ interface HTTPResponse {
141
+ statusCode?: number;
142
+ headers?: { [id: string]: string };
143
+ content?: string;
144
+ data?: any;
145
+ }
146
+
147
+ function call(method: string, url: string, options?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
148
+ function del(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
149
+ function get(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
150
+ function post(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
151
+ function put(url: string, callOptions?: HTTP.HTTPRequest, asyncCallback?: Function): HTTP.HTTPResponse;
152
+ }
153
+ }
154
+
155
+ declare module "meteor/random" {
156
+ export namespace Random {
157
+ function id(numberOfChars?: number): string;
158
+ function secret(numberOfChars?: number): string;
159
+ function fraction(): number;
160
+ function hexString(numberOfDigits: number): string; // @param numberOfDigits, @returns a random hex string of the given length
161
+ function choice(array: any[]): string; // @param array, @return a random element in array
162
+ function choice(str: string): string; // @param str, @return a random char in str
163
+ }
164
+ }
165
+
166
+ /**
167
+ * These are the client modules and interfaces that can't be automatically generated from the Meteor data.js file
168
+ */
169
+
170
+ declare module "meteor/meteor" {
171
+ import { Blaze } from "meteor/blaze";
172
+
173
+ export namespace Meteor {
174
+ /** Start definitions for Template **/
175
+ interface Event {
176
+ type: string;
177
+ target: HTMLElement;
178
+ currentTarget: HTMLElement;
179
+ which: number;
180
+ stopPropagation(): void;
181
+ stopImmediatePropagation(): void;
182
+ preventDefault(): void;
183
+ isPropagationStopped(): boolean;
184
+ isImmediatePropagationStopped(): boolean;
185
+ isDefaultPrevented(): boolean;
186
+ }
187
+
188
+ interface EventHandlerFunction extends Function {
189
+ (event?: Meteor.Event, templateInstance?: Blaze.TemplateInstance): void;
190
+ }
191
+
192
+ interface EventMap {
193
+ [id: string]: Meteor.EventHandlerFunction;
194
+ }
195
+ /** End definitions for Template **/
196
+
197
+ interface LoginWithExternalServiceOptions {
198
+ requestPermissions?: string[];
199
+ requestOfflineToken?: boolean;
200
+ forceApprovalPrompt?: boolean;
201
+ userEmail?: string;
202
+ loginStyle?: string;
203
+ }
204
+
205
+ function loginWithMeteorDeveloperAccount(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
206
+ function loginWithFacebook(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
207
+ function loginWithGithub(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
208
+ function loginWithGoogle(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
209
+ function loginWithMeetup(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
210
+ function loginWithTwitter(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
211
+ function loginWithWeibo(options?: Meteor.LoginWithExternalServiceOptions, callback?: Function): void;
212
+
213
+ interface SubscriptionHandle {
214
+ stop(): void;
215
+ ready(): boolean;
216
+ }
217
+ }
218
+ }
219
+
220
+ declare module "meteor/blaze" {
221
+ export namespace Blaze {
222
+ interface View {
223
+ name: string;
224
+ parentView: Blaze.View;
225
+ isCreated: boolean;
226
+ isRendered: boolean;
227
+ isDestroyed: boolean;
228
+ renderCount: number;
229
+ autorun(runFunc: Function): void;
230
+ onViewCreated(func: Function): void;
231
+ onViewReady(func: Function): void;
232
+ onViewDestroyed(func: Function): void;
233
+ firstNode(): Node;
234
+ lastNode(): Node;
235
+ template: Blaze.Template;
236
+ templateInstance(): any;
237
+ }
238
+ interface Template {
239
+ viewName: string;
240
+ renderFunction: Function;
241
+ constructView(): Blaze.View;
242
+ }
243
+ }
244
+ }
245
+
246
+ declare module "meteor/browser-policy" {
247
+ export namespace BrowserPolicy {
248
+
249
+ interface framing {
250
+ disallow(): void;
251
+ restrictToOrigin(origin: string): void;
252
+ allowAll(): void;
253
+ }
254
+ interface content {
255
+ allowEval(): void;
256
+ allowInlineStyles(): void;
257
+ allowInlineScripts(): void;
258
+ allowSameOriginForAll(): void;
259
+ allowDataUrlForAll(): void;
260
+ allowOriginForAll(origin: string): void;
261
+ allowImageOrigin(origin: string): void;
262
+ allowFrameOrigin(origin: string): void;
263
+ allowContentTypeSniffing(): void;
264
+ allowAllContentOrigin(): void;
265
+ allowAllContentDataUrl(): void;
266
+ allowAllContentSameOrigin(): void;
267
+
268
+ disallowAll(): void;
269
+ disallowInlineStyles(): void;
270
+ disallowEval(): void;
271
+ disallowInlineScripts(): void;
272
+ disallowFont(): void;
273
+ disallowObject(): void;
274
+ disallowAllContent(): void;
275
+ //TODO: add the basic content types
276
+ // allow<content type>Origin(origin)
277
+ // allow<content type>DataUrl()
278
+ // allow<content type>SameOrigin()
279
+ // disallow<content type>()
280
+ }
281
+ }
282
+ }
283
+
284
+
285
+ /**
286
+ * These are the server modules and interfaces that can't be automatically generated from the Meteor data.js file
287
+ */
288
+
289
+ declare module "meteor/meteor" {
290
+ export namespace Meteor {
291
+ interface EmailFields {
292
+ subject?: Function;
293
+ text?: Function;
294
+ }
295
+
296
+ interface EmailTemplates {
297
+ from: string;
298
+ siteName: string;
299
+ resetPassword: Meteor.EmailFields;
300
+ enrollAccount: Meteor.EmailFields;
301
+ verifyEmail: Meteor.EmailFields;
302
+ }
303
+
304
+ interface Connection {
305
+ id: string;
306
+ close: Function;
307
+ onClose: Function;
308
+ clientAddress: string;
309
+ httpHeaders: Object;
310
+ }
311
+ }
312
+ }
313
+
314
+ declare module "meteor/mongo" {
315
+ export namespace Mongo {
316
+ interface AllowDenyOptions {
317
+ insert?: (userId: string, doc: any) => boolean;
318
+ update?: (userId: string, doc: any, fieldNames: string[], modifier: any) => boolean;
319
+ remove?: (userId: string, doc: any) => boolean;
320
+ fetch?: string[];
321
+ transform?: Function;
322
+ }
323
+ }
324
+ }
325
+
326
+ interface MailComposerOptions {
327
+ escapeSMTP: boolean;
328
+ encoding: string;
329
+ charset: string;
330
+ keepBcc: boolean;
331
+ forceEmbeddedImages: boolean;
332
+ }
333
+
334
+ declare var MailComposer: MailComposerStatic;
335
+ interface MailComposerStatic {
336
+ new (options: MailComposerOptions): MailComposer;
337
+ }
338
+ interface MailComposer {
339
+ addHeader(name: string, value: string): void;
340
+ setMessageOption(from: string, to: string, body: string, html: string): void;
341
+ streamMessage(): void;
342
+ pipe(stream: any /** fs.WriteStream **/): void;
343
+ }
344
+ /**
345
+ * These are the modules and interfaces for packages that can't be automatically generated from the Meteor data.js file
346
+ */
347
+
348
+ interface ILengthAble {
349
+ length: number;
350
+ }
351
+
352
+ interface ITinytestAssertions {
353
+ ok(doc: Object): void;
354
+ expect_fail(): void;
355
+ fail(doc: Object): void;
356
+ runId(): string;
357
+ equal<T>(actual: T, expected: T, message?: string, not?: boolean): void;
358
+ notEqual<T>(actual: T, expected: T, message?: string): void;
359
+ instanceOf(obj: Object, klass: Function, message?: string): void;
360
+ notInstanceOf(obj: Object, klass: Function, message?: string): void;
361
+ matches(actual: any, regexp: RegExp, message?: string): void;
362
+ notMatches(actual: any, regexp: RegExp, message?: string): void;
363
+ throws(f: Function, expected?: string | RegExp): void;
364
+ isTrue(v: boolean, msg?: string): void;
365
+ isFalse(v: boolean, msg?: string): void;
366
+ isNull(v: any, msg?: string): void;
367
+ isNotNull(v: any, msg?: string): void;
368
+ isUndefined(v: any, msg?: string): void;
369
+ isNotUndefined(v: any, msg?: string): void;
370
+ isNan(v: any, msg?: string): void;
371
+ isNotNan(v: any, msg?: string): void;
372
+ include<T>(s: Array<T> | Object | string, value: any, msg?: string, not?: boolean): void;
373
+
374
+ notInclude<T>(s: Array<T> | Object | string, value: any, msg?: string, not?: boolean): void;
375
+ length(obj: ILengthAble, expected_length: number, msg?: string): void;
376
+ _stringEqual(actual: string, expected: string, msg?: string): void;
377
+ }
378
+
379
+ declare module "meteor/tiny-test" {
380
+ export namespace Tinytest {
381
+ function add(description: string, func: (test: ITinytestAssertions) => void): void;
382
+ function addAsync(description: string, func: (test: ITinytestAssertions) => void): void;
383
+ }
384
+ }
385
+
386
+
387
+ // Kept in for backwards compatibility
388
+ declare module "meteor/meteor" {
389
+ export namespace Meteor {
390
+ interface Tinytest {
391
+ add(description: string, func: (test: ITinytestAssertions) => void): void;
392
+ addAsync(description: string, func: (test: ITinytestAssertions) => void): void;
393
+ }
394
+ }
395
+ }
396
+
397
+ declare module "meteor/accounts-base" {
398
+ import { Meteor } from "meteor/meteor";
399
+
400
+ export namespace Accounts {
401
+ function addEmail(userId: string, newEmail: string, verified?: boolean): void;
402
+ function changePassword(oldPassword: string, newPassword: string, callback?: Function): void;
403
+ function createUser(options: {
404
+ username?: string;
405
+ email?: string;
406
+ password?: string;
407
+ profile?: Object;
408
+ }, callback?: Function): string;
409
+ var emailTemplates: Meteor.EmailTemplates;
410
+ function findUserByEmail(email: string): Object;
411
+ function findUserByUsername(username: string): Object;
412
+ function forgotPassword(options: {
413
+ email?: string;
414
+ }, callback?: Function): void;
415
+ function onEmailVerificationLink(callback: Function): void;
416
+ function onEnrollmentLink(callback: Function): void;
417
+ function onResetPasswordLink(callback: Function): void;
418
+ function removeEmail(userId: string, email: string): void;
419
+ function resetPassword(token: string, newPassword: string, callback?: Function): void;
420
+ function sendEnrollmentEmail(userId: string, email?: string): void;
421
+ function sendResetPasswordEmail(userId: string, email?: string): void;
422
+ function sendVerificationEmail(userId: string, email?: string): void;
423
+ function setPassword(userId: string, newPassword: string, options?: {
424
+ logout?: Object;
425
+ }): void;
426
+ function setUsername(userId: string, newUsername: string): void;
427
+ var ui: {
428
+ config(options: {
429
+ requestPermissions?: Object;
430
+ requestOfflineToken?: Object;
431
+ forceApprovalPrompt?: Object;
432
+ passwordSignupFields?: string;
433
+ }): void;
434
+ };
435
+ function verifyEmail(token: string, callback?: Function): void;
436
+ function config(options: {
437
+ sendVerificationEmail?: boolean;
438
+ forbidClientAccountCreation?: boolean;
439
+ restrictCreationByEmailDomain?: string | Function;
440
+ loginExpirationInDays?: number;
441
+ oauthSecretKey?: string;
442
+ }): void;
443
+ function onLogin(func: Function): { stop: () => void };
444
+ function onLoginFailure(func: Function): { stop: () => void };
445
+ function user(): Meteor.User;
446
+ function userId(): string;
447
+ function loggingIn(): boolean;
448
+ function logout(callback?: Function): void;
449
+ function logoutOtherClients(callback?: Function): void;
450
+ function onCreateUser(func: Function): void;
451
+ function validateLoginAttempt(func: Function): { stop: () => void };
452
+ function validateNewUser(func: Function): boolean;
453
+ }
454
+ }
455
+
456
+ declare namespace App {
457
+ function accessRule(domainRule: string, options?: {
458
+ launchExternal?: boolean;
459
+ }): void;
460
+ function configurePlugin(id: string, config: Object): void;
461
+ function icons(icons: Object): void;
462
+ function info(options: {
463
+ id?: string;
464
+ version?: string;
465
+ name?: string;
466
+ description?: string;
467
+ author?: string;
468
+ email?: string;
469
+ website?: string;
470
+ }): void;
471
+ function launchScreens(launchScreens: Object): void;
472
+ function setPreference(name: string, value: string, platform?: string): void;
473
+ }
474
+
475
+ declare namespace Assets {
476
+ function getBinary(assetPath: string, asyncCallback?: Function): EJSON;
477
+ function getText(assetPath: string, asyncCallback?: Function): string;
478
+ }
479
+
480
+ declare module "meteor/blaze" {
481
+ import { Meteor } from "meteor/meteor";
482
+ export namespace Blaze {
483
+ function Each(argFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
484
+ function If(conditionFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
485
+ function Let(bindings: Function, contentFunc: Function): Blaze.View;
486
+ var Template: TemplateStatic;
487
+ interface TemplateStatic {
488
+ new (viewName?: string, renderFunction?: Function): Template;
489
+ // It should be [templateName: string]: TemplateInstance but this is not possible -- user will need to cast to TemplateInstance
490
+ [templateName: string]: any | Template; // added "any" to make it work
491
+ head: Template;
492
+ find(selector: string): Blaze.Template;
493
+ findAll(selector: string): Blaze.Template[];
494
+ $: any;
495
+ }
496
+ interface Template {
497
+ }
498
+
499
+ var TemplateInstance: TemplateInstanceStatic;
500
+ interface TemplateInstanceStatic {
501
+ new (view: Blaze.View): TemplateInstance;
502
+ }
503
+ interface TemplateInstance {
504
+ $(selector: string): any;
505
+ autorun(runFunc: Function): Object;
506
+ data: Object;
507
+ find(selector?: string): Blaze.TemplateInstance;
508
+ findAll(selector: string): Blaze.TemplateInstance[];
509
+ firstNode: Object;
510
+ lastNode: Object;
511
+ subscribe(name: string, ...args: any[]): Meteor.SubscriptionHandle;
512
+ subscriptionsReady(): boolean;
513
+ view: Object;
514
+ }
515
+
516
+ function Unless(conditionFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
517
+ var View: ViewStatic;
518
+ interface ViewStatic {
519
+ new (name?: string, renderFunction?: Function): View;
520
+ }
521
+ interface View {
522
+ }
523
+
524
+ function With(data: Object | Function, contentFunc: Function): Blaze.View;
525
+ var currentView: Blaze.View;
526
+ function getData(elementOrView?: HTMLElement | Blaze.View): Object;
527
+ function getView(element?: HTMLElement): Blaze.View;
528
+ function isTemplate(value: any): boolean;
529
+ function remove(renderedView: Blaze.View): void;
530
+ function render(templateOrView: Template | Blaze.View, parentNode: Node, nextNode?: Node, parentView?: Blaze.View): Blaze.View;
531
+ function renderWithData(templateOrView: Template | Blaze.View, data: Object | Function, parentNode: Node, nextNode?: Node, parentView?: Blaze.View): Blaze.View;
532
+ function toHTML(templateOrView: Template | Blaze.View): string;
533
+ function toHTMLWithData(templateOrView: Template | Blaze.View, data: Object | Function): string;
534
+ }
535
+ }
536
+
537
+ declare namespace Cordova {
538
+ function depends(dependencies: { [id: string]: string }): void;
539
+ }
540
+
541
+ declare module "meteor/ddp" {
542
+ export namespace DDP {
543
+ function connect(url: string): DDP.DDPStatic;
544
+ }
545
+ }
546
+
547
+ declare namespace DDPCommon {
548
+ function MethodInvocation(options: {
549
+ }): any;
550
+ }
551
+
552
+ declare namespace EJSON {
553
+ var CustomType: CustomTypeStatic;
554
+ interface CustomTypeStatic {
555
+ new (): CustomType;
556
+ }
557
+ interface CustomType {
558
+ clone(): EJSON.CustomType;
559
+ equals(other: Object): boolean;
560
+ toJSONValue(): JSONable;
561
+ typeName(): string;
562
+ }
563
+
564
+ function addType(name: string, factory: (val: JSONable) => EJSON.CustomType): void;
565
+ function clone<T>(val: T): T;
566
+ function equals(a: EJSON, b: EJSON, options?: {
567
+ keyOrderSensitive?: boolean;
568
+ }): boolean;
569
+ function fromJSONValue(val: JSONable): any;
570
+ function isBinary(x: Object): boolean;
571
+ var newBinary: any;
572
+ function parse(str: string): EJSON;
573
+ function stringify(val: EJSON, options?: {
574
+ indent?: boolean | number | string;
575
+ canonical?: boolean;
576
+ }): string;
577
+ function toJSONValue(val: EJSON): JSONable;
578
+ }
579
+
580
+ declare namespace Match {
581
+ function test(value: any, pattern: any): boolean;
582
+ }
583
+
584
+ declare module "meteor/meteor" {
585
+ import { Mongo } from "meteor/mongo";
586
+
587
+ export namespace Meteor {
588
+ var Error: ErrorStatic;
589
+ interface ErrorStatic {
590
+ new (error: string | number, reason?: string, details?: string): Error;
591
+ }
592
+ interface Error {
593
+ error: string | number;
594
+ reason?: string;
595
+ details?: string;
596
+ }
597
+ function absoluteUrl(path?: string, options?: {
598
+ secure?: boolean;
599
+ replaceLocalhost?: boolean;
600
+ rootUrl?: string;
601
+ }): string;
602
+ function apply(name: string, args: EJSONable[], options?: {
603
+ wait?: boolean;
604
+ onResultReceived?: Function;
605
+ }, asyncCallback?: Function): any;
606
+ function call(name: string, ...args: any[]): any;
607
+ function clearInterval(id: number): void;
608
+ function clearTimeout(id: number): void;
609
+ function disconnect(): void;
610
+ var isClient: any;
611
+ var isCordova: boolean;
612
+ var isServer: any;
613
+ function loggingIn(): boolean;
614
+ function loginWith<ExternalService>(options?: {
615
+ requestPermissions?: string[];
616
+ requestOfflineToken?: boolean;
617
+ loginUrlParameters?: Object;
618
+ userEmail?: string;
619
+ loginStyle?: string;
620
+ redirectUrl?: string;
621
+ }, callback?: Function): void;
622
+ function loginWithPassword(user: Object | string, password: string, callback?: Function): void;
623
+ function logout(callback?: Function): void;
624
+ function logoutOtherClients(callback?: Function): void;
625
+ function methods(methods: Object): void;
626
+ function onConnection(callback: Function): void;
627
+ function publish(name: string, func: Function): void;
628
+ function reconnect(): void;
629
+ var release: string;
630
+ function setInterval(func: Function, delay: number): number;
631
+ function setTimeout(func: Function, delay: number): number;
632
+ var settings: { [id: string]: any };
633
+ function startup(func: Function): void;
634
+ function status(): Meteor.StatusEnum;
635
+ function subscribe(name: string, ...args: any[]): Meteor.SubscriptionHandle;
636
+ function user(): Meteor.User;
637
+ function userId(): string;
638
+ var users: Mongo.Collection<User>;
639
+ function wrapAsync(func: Function, context?: Object): any;
640
+ }
641
+ }
642
+
643
+ declare module "meteor/mongo" {
644
+ import { Meteor } from "meteor/meteor";
645
+
646
+ export namespace Mongo {
647
+ var Collection: CollectionStatic;
648
+ interface CollectionStatic {
649
+ new <T>(name: string, options?: {
650
+ connection?: Object;
651
+ idGeneration?: string;
652
+ transform?: Function;
653
+ }): Collection<T>;
654
+ }
655
+ interface Collection<T> {
656
+ allow(options: {
657
+ insert?: (userId: string, doc: T) => boolean;
658
+ update?: (userId: string, doc: T, fieldNames: string[], modifier: any) => boolean;
659
+ remove?: (userId: string, doc: T) => boolean;
660
+ fetch?: string[];
661
+ transform?: Function;
662
+ }): boolean;
663
+ deny(options: {
664
+ insert?: (userId: string, doc: T) => boolean;
665
+ update?: (userId: string, doc: T, fieldNames: string[], modifier: any) => boolean;
666
+ remove?: (userId: string, doc: T) => boolean;
667
+ fetch?: string[];
668
+ transform?: Function;
669
+ }): boolean;
670
+ find(selector?: Mongo.Selector | Mongo.ObjectID | string, options?: {
671
+ sort?: Mongo.SortSpecifier;
672
+ skip?: number;
673
+ limit?: number;
674
+ fields?: Mongo.FieldSpecifier;
675
+ reactive?: boolean;
676
+ transform?: Function;
677
+ }): Mongo.Cursor<T>;
678
+ findOne(selector?: Mongo.Selector | Mongo.ObjectID | string, options?: {
679
+ sort?: Mongo.SortSpecifier;
680
+ skip?: number;
681
+ fields?: Mongo.FieldSpecifier;
682
+ reactive?: boolean;
683
+ transform?: Function;
684
+ }): T;
685
+ insert(doc: T, callback?: Function): string;
686
+ rawCollection(): any;
687
+ rawDatabase(): any;
688
+ remove(selector: Mongo.Selector | Mongo.ObjectID | string, callback?: Function): number;
689
+ update(selector: Mongo.Selector | Mongo.ObjectID | string, modifier: Mongo.Modifier, options?: {
690
+ multi?: boolean;
691
+ upsert?: boolean;
692
+ }, callback?: Function): number;
693
+ upsert(selector: Mongo.Selector | Mongo.ObjectID | string, modifier: Mongo.Modifier, options?: {
694
+ multi?: boolean;
695
+ }, callback?: Function): { numberAffected?: number; insertedId?: string; };
696
+ _ensureIndex(indexName: string, options?: { [key: string]: any }): void;
697
+ }
698
+
699
+ var Cursor: CursorStatic;
700
+ interface CursorStatic {
701
+ new <T>(): Cursor<T>;
702
+ }
703
+ interface Cursor<T> {
704
+ count(): number;
705
+ fetch(): Array<T>;
706
+ forEach(callback: <T>(doc: T, index: number, cursor: Mongo.Cursor<T>) => void, thisArg?: any): void;
707
+ map<U>(callback: (doc: T, index: number, cursor: Mongo.Cursor<T>) => U, thisArg?: any): Array<U>;
708
+ observe(callbacks: Object): Meteor.LiveQueryHandle;
709
+ observeChanges(callbacks: Object): Meteor.LiveQueryHandle;
710
+ }
711
+
712
+ var ObjectID: ObjectIDStatic;
713
+ interface ObjectIDStatic {
714
+ new (hexString?: string): ObjectID;
715
+ }
716
+ interface ObjectID {
717
+ }
718
+
719
+ }
720
+ }
721
+
722
+ declare namespace Npm {
723
+ function depends(dependencies: { [id: string]: string }): void;
724
+ function require(name: string): any;
725
+ }
726
+
727
+ declare namespace Package {
728
+ function describe(options: {
729
+ summary?: string;
730
+ version?: string;
731
+ name?: string;
732
+ git?: string;
733
+ documentation?: string;
734
+ debugOnly?: boolean;
735
+ prodOnly?: boolean;
736
+ }): void;
737
+ function onTest(func: Function): void;
738
+ function onUse(func: Function): void;
739
+ function registerBuildPlugin(options?: {
740
+ name?: string;
741
+ use?: string | string[];
742
+ sources?: string[];
743
+ npmDependencies?: Object;
744
+ }): void;
745
+ }
746
+
747
+ declare module "meteor/tracker" {
748
+ export namespace Tracker {
749
+ function Computation(): void;
750
+ interface Computation {
751
+ firstRun: boolean;
752
+ invalidate(): void;
753
+ invalidated: boolean;
754
+ onInvalidate(callback: Function): void;
755
+ onStop(callback: Function): void;
756
+ stop(): void;
757
+ stopped: boolean;
758
+ }
759
+
760
+ var Dependency: DependencyStatic;
761
+ interface DependencyStatic {
762
+ new (): Dependency;
763
+ }
764
+ interface Dependency {
765
+ changed(): void;
766
+ depend(fromComputation?: Tracker.Computation): boolean;
767
+ hasDependents(): boolean;
768
+ }
769
+
770
+ var active: boolean;
771
+ function afterFlush(callback: Function): void;
772
+ function autorun(runFunc: (computation: Tracker.Computation) => void, options?: {
773
+ onError?: Function;
774
+ }): Tracker.Computation;
775
+ var currentComputation: Tracker.Computation;
776
+ function flush(): void;
777
+ function nonreactive(func: Function): void;
778
+ function onInvalidate(callback: Function): void;
779
+ }
780
+ }
781
+
782
+ declare namespace Session {
783
+ function equals(key: string, value: string | number | boolean | any /** Null **/ | any /** Undefined **/): boolean;
784
+ function get(key: string): any;
785
+ function set(key: string, value: EJSONable | any /** Undefined **/): void;
786
+ function setDefault(key: string, value: EJSONable | any /** Undefined **/): void;
787
+ }
788
+
789
+ declare module "meteor/http" {
790
+ import { Meteor } from "meteor/meteor";
791
+ export namespace HTTP {
792
+
793
+ function call(method: string, url: string, options?: {
794
+ content?: string;
795
+ data?: Object;
796
+ query?: string;
797
+ params?: Object;
798
+ auth?: string;
799
+ headers?: Object;
800
+ timeout?: number;
801
+ followRedirects?: boolean;
802
+ npmRequestOptions?: Object;
803
+ beforeSend?: Function;
804
+ }, asyncCallback?: Function): HTTP.HTTPResponse;
805
+ function del(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
806
+ function get(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
807
+ function post(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
808
+ function put(url: string, callOptions?: Object, asyncCallback?: Function): HTTP.HTTPResponse;
809
+ }
810
+ }
811
+
812
+ declare module "meteor/email" {
813
+ export namespace Email {
814
+ function send(options: {
815
+ from?: string;
816
+ to?: string | string[];
817
+ cc?: string | string[];
818
+ bcc?: string | string[];
819
+ replyTo?: string | string[];
820
+ subject?: string;
821
+ text?: string;
822
+ html?: string;
823
+ headers?: Object;
824
+ attachments?: Object[];
825
+ mailComposer?: MailComposer;
826
+ }): void;
827
+ }
828
+ }
829
+
830
+ declare var CompileStep: CompileStepStatic;
831
+ interface CompileStepStatic {
832
+ new (): CompileStep;
833
+ }
834
+ interface CompileStep {
835
+ addAsset(options: {
836
+ }, path: string, data: any /** Buffer **/ | string): any;
837
+ addHtml(options: {
838
+ section?: string;
839
+ data?: string;
840
+ }): any;
841
+ addJavaScript(options: {
842
+ path?: string;
843
+ data?: string;
844
+ sourcePath?: string;
845
+ }): any;
846
+ addStylesheet(options: {
847
+ }, path: string, data: string, sourceMap: string): any;
848
+ arch: any;
849
+ declaredExports: any;
850
+ error(options: {
851
+ }, message: string, sourcePath?: string, line?: number, func?: string): any;
852
+ fileOptions: any;
853
+ fullInputPath: any;
854
+ inputPath: any;
855
+ inputSize: any;
856
+ packageName: any;
857
+ pathForSourceMap: any;
858
+ read(n?: number): any;
859
+ rootOutputPath: any;
860
+ }
861
+
862
+ declare var PackageAPI: PackageAPIStatic;
863
+ interface PackageAPIStatic {
864
+ new (): PackageAPI;
865
+ }
866
+ interface PackageAPI {
867
+ addAssets(filenames: string | string[], architecture: string | string[]): void;
868
+ addFiles(filenames: string | string[], architecture?: string | string[], options?: {
869
+ bare?: boolean;
870
+ }): void;
871
+ export(exportedObjects: string | string[], architecture?: string | string[], exportOptions?: Object, testOnly?: boolean): void;
872
+ imply(packageNames: string | string[], architecture?: string | string[]): void;
873
+ use(packageNames: string | string[], architecture?: string | string[], options?: {
874
+ weak?: boolean;
875
+ unordered?: boolean;
876
+ }): void;
877
+ versionsFrom(meteorRelease: string | string[]): void;
878
+ }
879
+
880
+ declare module "meteor/reactive-var" {
881
+ import { Meteor } from "meteor/meteor";
882
+
883
+ export var ReactiveVar: ReactiveVarStatic;
884
+ interface ReactiveVarStatic {
885
+ new <T>(initialValue: T, equalsFunc?: Function): ReactiveVar<T>;
886
+ }
887
+ interface ReactiveVar<T> {
888
+ get(): T;
889
+ set(newValue: T): void;
890
+ }
891
+
892
+ export var Subscription: SubscriptionStatic;
893
+ interface SubscriptionStatic {
894
+ new (): Subscription;
895
+ }
896
+ interface Subscription {
897
+ added(collection: string, id: string, fields: Object): void;
898
+ changed(collection: string, id: string, fields: Object): void;
899
+ connection: Meteor.Connection;
900
+ error(error: Error): void;
901
+ onStop(func: Function): void;
902
+ ready(): void;
903
+ removed(collection: string, id: string): void;
904
+ stop(): void;
905
+ userId: string;
906
+ }
907
+ }
908
+
909
+ declare module "meteor/blaze" {
910
+ import { Meteor } from "meteor/meteor";
911
+
912
+ export var Template: TemplateStatic;
913
+ interface TemplateStatic {
914
+ new (): Template;
915
+ // It should be [templateName: string]: TemplateInstance but this is not possible -- user will need to cast to TemplateInstance
916
+ [templateName: string]: any | Template; // added "any" to make it work
917
+ head: Template;
918
+ find(selector: string): Blaze.Template;
919
+ findAll(selector: string): Blaze.Template[];
920
+ $: any;
921
+ body: Template;
922
+ currentData(): {};
923
+ instance(): Blaze.TemplateInstance;
924
+ parentData(numLevels?: number): {};
925
+ registerHelper(name: string, helperFunction: Function): void;
926
+ }
927
+ interface Template {
928
+ created: Function;
929
+ destroyed: Function;
930
+ events(eventMap: Meteor.EventMap): void;
931
+ helpers(helpers: { [id: string]: any }): void;
932
+ onCreated: Function;
933
+ onDestroyed: Function;
934
+ onRendered: Function;
935
+ rendered: Function;
936
+ }
937
+ }
938
+
939
+ declare function check(value: any, pattern: any): void;
940
+ declare function execFileAsync(command: string, args?: any[], options?: {
941
+ cwd?: Object;
942
+ env?: Object;
943
+ stdio?: any[] | string;
944
+ destination?: any;
945
+ waitForClose?: string;
946
+ }): any;
947
+ declare function execFileSync(command: string, args?: any[], options?: {
948
+ cwd?: Object;
949
+ env?: Object;
950
+ stdio?: any[] | string;
951
+ destination?: any;
952
+ waitForClose?: string;
953
+ }): string;
954
+ declare function getExtension(): string;
955
+