mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
meteor: inline test module augmentations (#40667)
This makes the test file structure more similar to other DT tests.
This commit is contained in:
@@ -11,6 +11,13 @@
|
||||
|
||||
/*********************************** Begin setup for tests ******************************/
|
||||
|
||||
declare namespace Meteor {
|
||||
interface User {
|
||||
// One of the tests assigns a new property to the user so it has to be typed
|
||||
dexterity?: number;
|
||||
}
|
||||
}
|
||||
|
||||
// Avoid conflicts between `meteor-tests.ts` and `globals/meteor-tests.ts`.
|
||||
namespace MeteorTests {
|
||||
|
||||
@@ -866,4 +873,4 @@ Meteor.absoluteUrl('/sub', {rootUrl: 'http://wonderful.com'});
|
||||
Meteor.absoluteUrl.defaultOptions = {
|
||||
rootUrl: 'http://123.com',
|
||||
secure: false
|
||||
};
|
||||
};
|
||||
|
||||
@@ -23,6 +23,15 @@ import { Accounts } from "meteor/accounts-base";
|
||||
import { BrowserPolicy } from "meteor/browser-policy-common";
|
||||
import { DDPRateLimiter } from "meteor/ddp-rate-limiter";
|
||||
|
||||
declare module 'meteor/meteor' {
|
||||
namespace Meteor {
|
||||
interface User {
|
||||
// One of the tests assigns a new property to the user so it has to be typed
|
||||
dexterity?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Avoid conflicts between `meteor-tests.ts` and `globals/meteor-tests.ts`.
|
||||
namespace MeteorTests {
|
||||
|
||||
@@ -878,4 +887,4 @@ Meteor.absoluteUrl('/sub', {rootUrl: 'http://wonderful.com'});
|
||||
Meteor.absoluteUrl.defaultOptions = {
|
||||
rootUrl: 'http://123.com',
|
||||
secure: false
|
||||
};
|
||||
};
|
||||
|
||||
Vendored
-15
@@ -1,15 +0,0 @@
|
||||
declare module 'meteor/meteor' {
|
||||
module Meteor {
|
||||
interface User {
|
||||
// One of the tests assigns a new property to the user so it has to be typed
|
||||
dexterity?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare module Meteor {
|
||||
interface User {
|
||||
// One of the tests assigns a new property to the user so it has to be typed
|
||||
dexterity?: number;
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,6 @@
|
||||
"index.d.ts",
|
||||
"test/meteor-tests.ts",
|
||||
"test/globals/meteor-tests.ts",
|
||||
"test/userAugment.d.ts",
|
||||
"test/meteor-tests-module-only.ts",
|
||||
"test/server-render.tsx",
|
||||
"react-meteor-data.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user