silverwind

Results 1226 comments of silverwind
trafficstars

> For Node project, they should npm i @types/node -D additionally. > For browser project, they should npm i @types/web -D additionally. This approach won't work correctly for projects that...

> TS will load all the node_modules/@types/* declaration files when types field is removed Also to note, this likely won't be true anymore in typescript 6 as per https://github.com/microsoft/TypeScript/issues/54500 where...

The `boolean` package has been deprecated: https://www.npmjs.com/package/boolean > Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Should be easy enough to replace, this is the whole module: ```ts const boolean = function (value: any): boolean { switch (Object.prototype.toString.call(value)) { case '[object String]': return [ 'true', 't',...

This seems far to error-prone for the parser and JSX also does not allow it, for comparison. What you can do in JSX is either quoted the string `"foo"` or...

> It's a bit unfortunate that runtimes until now don't provide the utilites we need to load config files Node can `import()` Typescript when `process.features.typescript` is truthy. Bun and Deno...

Yeah I guess this type would mostly be for completeness sake. I guess `EmptyObject` has a reason for existence because of the mentioned problems surrounding the `{}` type that `[]`...

I would not name the option `hidden` (which is too ambigous), but `includeDot` and `excludeDot`.

I wonder whether including dotfiles in the `*` glob may just be an acceptable way to go. Superflous extra files included in a project do to my knowledge not cause...