0

I am making a module that extends the uses of a package,

Then I have added the new types with example:

declare module "meteor/meteor" {
  module Meteor {
    interface User {
      field1: string
      field2: string
      field3: string
    }

    // If you already have an existing interface that you want to "merge"
    // into Meteor.User:
    interface User extends UserAdditonal {}
  }
}

In my local project it works perfectly and it detects the new types well,

But how do I make it so that by the time I publish it on npm the users can have these new types and it doesn't tell them that it doesn't exist?

When publishing the package, users should be able to detect the new declarations I created.

sefirosweb
  • 11
  • 1

0 Answers0