Skip to content

Commit 465bcbc

Browse files
committed
内部モジュールからnamespaceに変更漏れしている箇所を修正
1 parent 6c4ac13 commit 465bcbc

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

articles/definition-file.re

+2-2
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,10 @@ declare namespace assert {
579579
この手法は、実際に@<href>{https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/power-assert/power-assert.d.ts,power-assertの型定義ファイル}@<fn>{power-assert-dts}でも利用されています。
580580
@<list>{interfaceAntipattern/powerAssertAbst-ignore}に抜粋&改変したものを示します。
581581

582-
//list[interfaceAntipattern/powerAssertAbst-ignore][関数+内部モジュールの実例]{
582+
//list[interfaceAntipattern/powerAssertAbst-ignore][関数+namespaceの実例]{
583583
#@mapfile(../code/definition-file/interfaceAntipattern/powerAssertAbst-ignore.d.ts)
584584
declare function assert(value: any, message?: string): void;
585-
declare module assert {
585+
declare namespace assert {
586586

587587
export function deepEqual(actual: any, expected: any): void;
588588
export function notDeepEqual(acutal: any, expected: any): void;

articles/typescript-basic.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ namespace a {
557557
}
558558

559559
namespace b {
560-
export module c {
560+
export namespace c {
561561
export function hello() {
562562
return a.obj.hello();
563563
}

code/definition-file/interfaceAntipattern/powerAssertAbst-ignore.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare function assert(value: any, message?: string): void;
2-
declare module assert {
2+
declare namespace assert {
33

44
export function deepEqual(actual: any, expected: any): void;
55
export function notDeepEqual(acutal: any, expected: any): void;

code/typescript-basic/internalModule/basic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace a {
1919
}
2020

2121
namespace b {
22-
export module c {
22+
export namespace c {
2323
export function hello() {
2424
return a.obj.hello();
2525
}

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"scripts": {
1010
"global": "gem install bundler",
1111
"postinstall": "bundle install",
12-
"pdf": "grunt pdf",
13-
"web": "grunt web",
14-
"html": "grunt html",
15-
"build:ts": "tsc -p ./"
12+
"pdf": "npm run build && grunt pdf",
13+
"web": "npm run build && grunt web",
14+
"html": "npm run build && grunt html",
15+
"build": "tsc -p ./"
1616
},
1717
"dependencies": {},
1818
"devDependencies": {

0 commit comments

Comments
 (0)