meteor-type-validation
Version:
A lightweight set of TypeScript utilities to add proper type inference and validation for your Meteor publications and methods
11 lines (9 loc) • 333 B
text/typescript
import { Meteor, DefinedMethods, DefinedPublications } from '@meteor';
/**
* Overrides for Meteor's default types to enforce type safety.
*/
export const MeteorApi = {
callAsync: Meteor.callAsync<keyof DefinedMethods>,
call: Meteor.call<keyof DefinedMethods>,
subscribe: Meteor.subscribe<keyof DefinedPublications>,
}