@types/meteor: Add imports in *.d.ts files so as to remove implicit imports from /globals folder. (#38545)

* Add imports in *.d.ts files so as to remove implicit imports.

* Fix omission of Mongo import in service-configuration.d.ts
This commit is contained in:
Chiciuc Nicușor
2019-09-25 14:04:23 -07:00
committed by Michael Crane
parent 22ac2d9abd
commit 129abd98db
10 changed files with 15 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
import { Meteor } from 'meteor/meteor';
declare module "meteor/accounts-base" {
interface URLS {
resetPassword: (token: string) => string;
+2
View File
@@ -1,3 +1,5 @@
import { Tracker } from 'meteor/tracker';
import { Meteor } from 'meteor/meteor';
declare module "meteor/blaze" {
module Blaze {
var View: ViewStatic;
+1
View File
@@ -1,3 +1,4 @@
import { Meteor } from 'meteor/meteor';
declare module "meteor/ddp" {
module DDP {
interface DDPStatic {
+1
View File
@@ -1,3 +1,4 @@
declare type global_Error = Error;
declare module Meteor {
/** Global props **/
var isClient: boolean;
+5 -1
View File
@@ -1,5 +1,9 @@
type global_Error = Error;
import { Mongo } from 'meteor/mongo';
import { EJSONable, EJSONableProperty } from 'meteor/ejson';
import { Blaze } from 'meteor/blaze';
import { DDP } from 'meteor/ddp';
declare module "meteor/meteor" {
type global_Error = Error;
module Meteor {
/** Global props **/
var isClient: boolean;
+1
View File
@@ -1,3 +1,4 @@
import { Meteor } from 'meteor/meteor';
declare module "meteor/mongo" {
module Mongo {
+1
View File
@@ -1,3 +1,4 @@
import { Mongo } from 'meteor/mongo';
declare module "meteor/service-configuration" {
interface Configuration {
appId: string;
+1
View File
@@ -1,3 +1,4 @@
import { EJSONable } from 'meteor/ejson';
declare module "meteor/session" {
module Session {
function equals(key: string, value: string | number | boolean | any): boolean;
+1
View File
@@ -1,3 +1,4 @@
import { Blaze } from 'meteor/blaze';
declare module "meteor/templating" {
var Template: TemplateStatic;
interface TemplateStatic extends Blaze.TemplateStatic {
+1
View File
@@ -1,3 +1,4 @@
import { EJSON } from 'meteor/ejson';
declare module "meteor/tools" {
module App {
function accessRule(pattern: string, options?: {