Firefishなら拡張されてるらしいから含むでできないこともできるのかもしれないが
色々ゲームするひと
あとちょっとしたソフトウェア開発など
※多い・雑多にもほどがある・フォロー/フォロバ気まぐれ
■HOT: 異世界の創造者、Paleo Pines、他好きなゲーム→ https://whiteblackspace.hatenablog.com/prof
■何か作る メイン/最近は・もかなり/ほどほど/C++ほんの少し/つくったものとかはここ
■で遊んだりほんの少しだけカスタム絵文字を作ったりごくまれにファンアートのような何か描きます
■20↑
This account is not set to public on notestock.
てか元ソースがこういう書き方だとダメなんだね!ってのがわかったところでそもそも今やってるjsから型ファイル出すっての、もう既にある巨大なコードに対してやる作業であって(小さいなり今から作るならtsをかけばよい)
じゃあ元を直そうね!とはならない!!の!!!!
This account is not set to public on notestock.
This account is not set to public on notestock.
あ、でもこっちはprototypeオブジェクト自体を置換してるせいだな
ちゃんとプロパティに入れる方だと出てきた
// my.js
var Cls = function () {
this.a = 1;
};
Cls.prototype.say = function () {
console.log(this.a);
};
declare class Cls {
say(): void;
}
まあ成功した方も出力こんななってて
prototypeで定義したメソッドがちゃんとでてこないので成功させようとしなくてもいいかもしれない
declare class Cls {
}
// my.js
var Cls = function () {
this.a = 1;
};
Cls.prototype = {
say: function () {
console.log(this.a);
},
};
$ npx tsc --allowJs --declaration --emitDeclarationOnly --outFile ./temp.d.ts ./src/my.js
$
// my.js
var Cls = function (a) {
this.a = a;
};
Cls.prototype = {
say: function () {
console.log(this.a);
},
};
$ npx tsc --allowJs --declaration --emitDeclarationOnly --outFile ./temp.d.ts ./src/my.js
src/my.js:2:1 - error TS9005: Declaration emit for this file requires using private name 'Cls'. An explicit type annotation may unblock declaration emit.
2 var Cls = function (a) {
~~~
Found 1 error in src/my.js:2
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
仲間2人後衛でにしたら全員後衛パーティになってて全員死んでお金なくなってやべえやべえっていいながら高レベル前衛冒険者を調達した思い出が
魅力高いダンサーだから参考になるかわからんけど
レベル一桁台で20いくつくらいの冒険者勧誘できてたからなんとかなるとは思うんだが…
This account is not set to public on notestock.
This account is not set to public on notestock.
肉+油のほうが食材も調味料も力なのはそうなんだけど
とにかく肉の+が敵のレベル依存だから上がりづらいのよねえ…
しかも正確には自分と敵の低い方のレベル依存らしいので、自分より強い敵倒してもプラス上がらんという
トウモロコシ+174の天ぷら+44で力⭐11
トウモロコシ+174の天ぷら+55(+1.25倍になるまで粘ったやつ)で力⭐13なので
越える越える
RE: https://misskey.io/notes/9jjy0spszj