Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Support goog.require calls by overloading the function #113

Closed
rkirov opened this issue Oct 10, 2015 · 0 comments
Closed

Support goog.require calls by overloading the function #113

rkirov opened this issue Oct 10, 2015 · 0 comments
Assignees

Comments

@rkirov
Copy link
Contributor

rkirov commented Oct 10, 2015

To typecheck user code, written in closure module style:

var {trim} = goog.require('goog.string');

we can do so by emitting:

declare namespace ಠ_ಠ.cl2dts_internal.goog {
  function require(name: string): any;
  function require(name: 'goog.string'): typeof ಠ_ಠ.cl2dts_internal.goog.string;
}
@rkirov rkirov self-assigned this Oct 10, 2015
rkirov added a commit that referenced this issue Oct 15, 2015
rkirov added a commit that referenced this issue Oct 15, 2015
rkirov added a commit that referenced this issue Oct 15, 2015
rkirov added a commit that referenced this issue Oct 16, 2015
rkirov added a commit that referenced this issue Oct 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant