Andrew Plummer

Results 205 comments of Andrew Plummer

So, according to [this](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html) guide, the preferred way of publishing the types is to put them in the repos and add the "types" field to package.json, which I have done....

Ok, so from what I gathered: ``` typescript isDate(instance: Object): boolean; ``` becomes: ``` typescript isDate(instance: Object): instance is Date; ``` ? I guess the return boolean value is implied...

Makes sense! Will make this change!

Ok! This is now updated.

Oh, I thought the user would include both separately, but I guess this might be better?

Ah ok that's a good point since `sugar-extended` does have explicit references. Will update this!

So, I named it `sugarjs` to give it a more unique name. Are collisions not a thing here? That said, it works fine as the naming seems not to matter...

While we're on the topic, `module` and `namespace` seem to show no difference in usage. Is there a correct way to use one vs the other?

OK... I've read through the guide, and I see what you mean now. I also get the difference between namespaces and modules. It does appear that the `sugarjs` name doesn't...

Hmm. I see what you mean, and I definitely intended the primitive, but technically this method will accept either. Is that possible?