From cb06d80d6adbdc98bbf05be69213bcebdadae0f1 Mon Sep 17 00:00:00 2001 From: Oli Sturm Date: Mon, 27 Apr 2026 16:33:37 +0100 Subject: [PATCH] make type-based IDEs even happier --- js-fp3/.gitignore | 143 +++++++++++++++++++++++++++++++++++++++ js-fp3/package-lock.json | 32 +++++++++ js-fp3/package.json | 3 + js-fp3/tsconfig.json | 3 +- 4 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 js-fp3/.gitignore create mode 100644 js-fp3/package-lock.json diff --git a/js-fp3/.gitignore b/js-fp3/.gitignore new file mode 100644 index 0000000..872d5f6 --- /dev/null +++ b/js-fp3/.gitignore @@ -0,0 +1,143 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.* +!.env.example + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist +.output + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp directory +.temp + +# Sveltekit cache directory +.svelte-kit/ + +# vitepress build output +**/.vitepress/dist + +# vitepress cache directory +**/.vitepress/cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# Firebase cache directory +.firebase/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# pnpm +.pnpm-store + +# yarn v3 +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# Vite files +vite.config.js.timestamp-* +vite.config.ts.timestamp-* +.vite/ diff --git a/js-fp3/package-lock.json b/js-fp3/package-lock.json new file mode 100644 index 0000000..83c88e7 --- /dev/null +++ b/js-fp3/package-lock.json @@ -0,0 +1,32 @@ +{ + "name": "js-fp3", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "js-fp3", + "version": "1.0.0", + "devDependencies": { + "@types/node": "^25.6.0" + } + }, + "node_modules/@types/node": { + "version": "25.6.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz", + "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.19.0" + } + }, + "node_modules/undici-types": { + "version": "7.19.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz", + "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==", + "dev": true, + "license": "MIT" + } + } +} diff --git a/js-fp3/package.json b/js-fp3/package.json index 139587d..7fc47dc 100644 --- a/js-fp3/package.json +++ b/js-fp3/package.json @@ -6,5 +6,8 @@ "main": "index.js", "scripts": { "start": "node index.js" + }, + "devDependencies": { + "@types/node": "^25.6.0" } } diff --git a/js-fp3/tsconfig.json b/js-fp3/tsconfig.json index 6938b16..9f8c368 100644 --- a/js-fp3/tsconfig.json +++ b/js-fp3/tsconfig.json @@ -6,7 +6,8 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "target": "ES2022", - "strict": true + "strict": true, + "types": ["node"] }, "include": ["**/*.js", "**/*.d.ts"] } \ No newline at end of file