From a76622b9f962136cded57f8a59547ec9f508db83 Mon Sep 17 00:00:00 2001 From: Linda_pp Date: Tue, 1 Nov 2016 22:57:14 +0900 Subject: [PATCH] Fix menubar module for types-2.0 (#12397) --- menubar/{menubar.d.ts => index.d.ts} | 4 ++-- menubar/menubar-tests.ts | 2 -- menubar/tsconfig.json | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) rename menubar/{menubar.d.ts => index.d.ts} (93%) create mode 100644 menubar/tsconfig.json diff --git a/menubar/menubar.d.ts b/menubar/index.d.ts similarity index 93% rename from menubar/menubar.d.ts rename to menubar/index.d.ts index 678207fb78..7f764d3082 100644 --- a/menubar/menubar.d.ts +++ b/menubar/index.d.ts @@ -3,8 +3,8 @@ // Definitions by: rhysd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// -/// +/// +/// declare namespace Menubar { type Position diff --git a/menubar/menubar-tests.ts b/menubar/menubar-tests.ts index f403b95a50..b4b76d2f87 100644 --- a/menubar/menubar-tests.ts +++ b/menubar/menubar-tests.ts @@ -1,5 +1,3 @@ -/// - import * as menubar from "menubar"; var mb1 = menubar(); diff --git a/menubar/tsconfig.json b/menubar/tsconfig.json new file mode 100644 index 0000000000..a2be790531 --- /dev/null +++ b/menubar/tsconfig.json @@ -0,0 +1,20 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "menubar-tests.ts" + ] +}