mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Deprecated and updated README appropriately (#9652)
* Deprecated, fixed tests to pass * Improved deprecation message in README
This commit is contained in:
committed by
Masahiro Wakame
parent
7c0005e0db
commit
f1e58fbffa
@@ -1,4 +1,13 @@
|
||||
# Meteor Type Definitions
|
||||
# Meteor Type Definitions [DEPRECATED]
|
||||
|
||||
## Deprecated
|
||||
|
||||
These definitions for Meteor are now deprecated. They should still work for versions of Meteor up to 1.2.1.
|
||||
|
||||
The canonical TypeScript definitions for Meteor can now be found using the NPM [Typings definition manager](https://www.npmjs.com/package/typings). If you prefer to view the definitions directly, or contribute to them, they can be found here: <https://github.com/meteor-typings/meteor>.
|
||||
|
||||
|
||||
## Description
|
||||
|
||||
These are the definitions for version 1.3 of Meteor. These definitions were generated from the from the same [Meteor data.js file] (https://github.com/meteor/meteor/blob/devel/docs/client/data.js) that is used to generate the official [Meteor docs] (http://docs.meteor.com/). The code that generates these definitions can be found [here](https://github.com/meteor-typescript/meteor-typescript-libs/).
|
||||
|
||||
|
||||
@@ -650,16 +650,16 @@ Accounts.emailTemplates.siteName = "AwesomeSite";
|
||||
Accounts.emailTemplates.from = "AwesomeSite Admin <accounts@example.com>";
|
||||
Accounts.emailTemplates.headers = { asdf: 'asdf', qwer: 'qwer' };
|
||||
|
||||
Accounts.emailTemplates.enrollAccount.subject = function (user) {
|
||||
Accounts.emailTemplates.enrollAccount.subject = function (user: Meteor.User) {
|
||||
return "Welcome to Awesome Town, " + user.profile.name;
|
||||
};
|
||||
Accounts.emailTemplates.enrollAccount.html = function (user, url) {
|
||||
Accounts.emailTemplates.enrollAccount.html = function (user: Meteor.User, url: string) {
|
||||
return "<h1>Some html here</h1>";
|
||||
};
|
||||
Accounts.emailTemplates.enrollAccount.from = function() {
|
||||
return "asdf@asdf.com";
|
||||
};
|
||||
Accounts.emailTemplates.enrollAccount.text = function (user, url) {
|
||||
Accounts.emailTemplates.enrollAccount.text = function (user: Meteor.User, url: string) {
|
||||
return "You have been selected to participate in building a better future!"
|
||||
+ " To activate your account, simply click the link below:\n\n"
|
||||
+ url;
|
||||
|
||||
Reference in New Issue
Block a user