Skip to content

Commit f17fc67

Browse files
committed
publish (auto)
branch: source SHA: fdc08c4 range SHA: 9c7f30c...fdc08c4 build id: 663560283 build number: 94
1 parent 4b398dd commit f17fc67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

guides/best-practices.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h3 id="ghost-modules" class="ui header">Ghost modules</h3>
6767
<span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">NodeBuzz</span> {</span> }
6868

6969
<span class="hljs-comment">// this ghost module has 1 name in top level</span>
70-
<span class="hljs-keyword">declare</span> <span class="hljs-keyword">module</span> NodeJS {
70+
<span class="hljs-keyword">declare</span> namespace NodeJS {
7171
<span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">Foo</span> {</span> }
7272
<span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">Bar</span> {</span> }
7373
<span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">Buzz</span> {</span> }

guides/contributing.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ <h3 id="header" class="ui header">Header</h3>
7777
</code></pre><h3 id="namespacing" class="ui header">Namespacing</h3>
7878
<div class="ui list"><div class="ui item">Be careful to use a module to avoid conflicts to your internal interfaces and the interfaces from another typings. See <a href="/guides/best-practices.html">best practices</a> and <a href="https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/declaration%20files/Introduction.md">the TypeScript wiki</a> for some tips.</div>
7979
</div><blockquote>
80-
<p>The <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jquery.bbq/index.d.ts"><code>jQuery.bbq</code> typing</a> has the interfaces in a module named <code>JQueryBbq</code></p>
80+
<p>The <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jquery.bbq/index.d.ts"><code>jQuery.bbq</code> typing</a> has the interfaces in a namespace named <code>JQueryBbq</code></p>
8181
</blockquote>
8282
<p>Example:</p>
83-
<pre><code class="lang-typescript"><span class="hljs-keyword">module</span> JQueryBbq {
83+
<pre><code class="lang-typescript">namespace JQueryBbq {
8484
<span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">JQuery</span> {</span>
8585
<span class="hljs-comment">//...</span>
8686
}

0 commit comments

Comments
 (0)