mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Forward declare namespaces only in JSDoc
Forward declares symbol. This is an indication to the compiler that the symbol may be used in the source yet is not required and may not be provided in compilation. The most common usage of forward declaration is code that takes a type as a function parameter but does not need to require it. By forward declaring instead of requiring, no hard dependency is made, and (if not required elsewhere) the namespace may never be required and thus, not be pulled into the JavaScript binary. If it is required elsewhere, it will be type checked as normal. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127095620
This commit is contained in:
parent
0e511f0178
commit
7b9752c99d
22 changed files with 47 additions and 0 deletions
|
@ -23,6 +23,8 @@ goog.require('goog.events.EventType');
|
|||
goog.require('registry.soy.forms');
|
||||
goog.require('registry.util');
|
||||
|
||||
goog.forwardDeclare('registry.Console');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue