1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 2× 1× 1× | /* * サーバ/クライアント切り替え定義 * 多少イレギュラーだが 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 |