all files / src/ zxymod.ts

100% Statements 3/3
50% Branches 2/4
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                         
 
/*
 * サーバ/クライアント切り替え定義
 * 多少イレギュラーだが module.exportsでサーバ側でも読み込み可能にしておく。
 * クライアントでの使用がメインの想定なのでモジュール定義はせずおく
 */
 
namespace jisX0410
{
  declare var module : any;
  //if (typeof window === 'undefined'){
  //if ((<any>global).window !== global) {
  Eif (typeof module !== 'undefined'){
    module.exports = jisX0410;
  }//end if
}//end namespace