The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/meteor.d.ts

47 lines
963 B

/* eslint-disable @typescript-eslint/camelcase */
import { EJSON } from 'meteor/ejson';
declare module 'meteor/meteor' {
namespace Meteor {
interface IDDPMessage {
msg: 'method';
method: string;
params: EJSON[];
id: string;
}
interface IDDPUpdatedMessage {
msg: 'updated';
methods: string[];
}
interface IMeteorConnection {
_send(message: IDDPMessage): void;
_livedata_data(message: IDDPUpdatedMessage): void;
onMessage(message: string): void;
}
const connection: IMeteorConnection;
}
}
declare module 'meteor/tracker' {
namespace Tracker {
function nonreactive<T>(func: () => T): T;
}
}
declare module 'meteor/mongo' {
namespace Mongo {
// eslint-disable-next-line @typescript-eslint/interface-name-prefix
interface CollectionStatic {
new <T>(name: string | null, options?: {
connection?: object | null;
idGeneration?: string;
transform?: Function | null;
}): Collection<T>;
}
}
}