fisker Cheung

Results 1279 comments of fisker Cheung

> it's ignored by **/fixtures/** pattern. No wonder I can't reproduce when trying to make the reproduction smaller. (Took me a while to setup)

> Is this the intended behavior? Are you running the script inside `globby-test-ignore` or outside?

Sounds like a bug to me. But seems absolute ignore is expected? https://github.com/mrmlnc/fast-glob/issues/113

Maybe [this Prettier issue](https://github.com/prettier/prettier/issues/13135) is the same reason. "Problem 2"

Console shows the same result on [typescript playground](https://www.typescriptlang.org/play/index.html?ssl=4&ssc=2&pln=1&pc=1#code/GYVwdgxgLglg9mABDAzgEQKbBmDATAHgBUA+ACgEMAnAcxAFsMwoAuRIxAH0XDyx3wBKNtTqNmyFO0QBvAFCJEVDFBBUkUAJ4AHDHGCJRDJlEQBCALwXEAcl79ceG3IC+cuRAQpTMKBnpS1gDaAIwANIgATBH22I4Auu6+-igAdNgANn5UZKiYcUKp9BTaZGRgDABGGFSCiBYksgqIAPQtiBX01VSSHXAA7ohauoh01Hx4hmCTsQKTqIgYGTD0OBR+eM2eYChwGRipGXA05VU1gq4XcskB6TBZNWWddQ2S+XOn9IKCRSVPZ7V6o15Io2ogABYDDAANxqESg4IW-QommQpjwcAwUjAcFM-TgVAA1hEKNNEAAiTrdcmICCkxDee4ZRDVHjTBz4LZePYHI4nKnnS5AA)

Expect ```ts items.filter(((num) => isDefined(num)) as typeof isDefined).map((number) => { // however, this way it does not work, and "number" can still be undefined return number + 1 }) ```...

It's not only about `.filter`, all function references lost types.

> Does anyone know of any existing rules that rely on the Typescript return type of something that's imported? I don't know about this, but you can try check https://github.com/typescript-eslint/typescript-eslint,...

We can analyze `selector`, if it's known not a `function`, ignore it.