{"_id":"11ty.ts","_rev":"6-ed167b66ec03cf3cc1c03e906d2a2900","name":"11ty.ts","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"11ty.ts","version":"0.0.1","keywords":["11ty","defineConfig","typescript","typings","eleventy","types","declarations","wrapper"],"author":{"url":"https://x.com/niksavvidis","name":"Νίκος Σαβίδης","email":"n.savvidis@gmx.com"},"license":"Apache-2.0","_id":"11ty.ts@0.0.1","maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"bugs":{"url":"https://github.com/panoply/e11ty/issues"},"dist":{"shasum":"402ab2e397592df6631680c0e56acf0663a53dc6","tarball":"https://registry.npmjs.org/11ty.ts/-/11ty.ts-0.0.1.tgz","fileCount":6,"integrity":"sha512-kzGB7oiHuQNRGplN40/rcSSvmYL22jEri7azlMaBvAQpr3poDgBtKYtSaMXdyN5xnCEYHmba7kt6viG6C5RZjg==","signatures":[{"sig":"MEUCIAjVTKD0fyKBu4Itm8xwn/w4pMuYWrfR0QjjhffRQObZAiEAoF34TJd0/ez3kp9zFe7xYqg73otusVlFu/OhBWH+5VU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42548},"main":"./dist/index.js","_from":"file:11ty.ts-0.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"echo \"Error: no test specified\" && exit 1","build":"tsup --minify","postversion":"pnpm bump"},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"prettier":"@sissel/prettier-config","_resolved":"/private/var/folders/1x/7shg2fmd26b7d4_yzv7frxdw0000gp/T/6d17c188fea55900ab3a3a13cea0f322/11ty.ts-0.0.1.tgz","_integrity":"sha512-kzGB7oiHuQNRGplN40/rcSSvmYL22jEri7azlMaBvAQpr3poDgBtKYtSaMXdyN5xnCEYHmba7kt6viG6C5RZjg==","repository":{"url":"https://github.com/panoply/e11ty/plugins/11ty.ts","type":"git"},"_npmVersion":"10.2.3","description":"An Eleventy wrapper for type supported configuration.","directories":{},"_nodeVersion":"20.10.0","eslintConfig":{"extends":"@sissel/eslint-config","ignorePatterns":["dist"]},"_hasShrinkwrap":false,"devDependencies":{"chokidar":"^3.6.0","type-fest":"^4.15.0"},"peerDependencies":{"@11ty/eleventy":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/11ty.ts_0.0.1_1713542206118_0.8571183227116086","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"11ty.ts","version":"0.0.2","keywords":["11ty","defineConfig","typescript","typings","eleventy","types","declarations","wrapper"],"author":{"url":"https://x.com/niksavvidis","name":"Νίκος Σαβίδης","email":"n.savvidis@gmx.com"},"license":"Apache-2.0","_id":"11ty.ts@0.0.2","maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"bugs":{"url":"https://github.com/panoply/e11ty/issues"},"dist":{"shasum":"4b758679eb0bfe21c57fc5474445cde42712c32d","tarball":"https://registry.npmjs.org/11ty.ts/-/11ty.ts-0.0.2.tgz","fileCount":6,"integrity":"sha512-ELi6x2XkbNbEbbaNj8GnGCaYs0MPKS/IgqVF307Am49GatDpmR7CIclY+ZgqWppvqx5NwZXUknhGObmtBuyXAw==","signatures":[{"sig":"MEYCIQDOJSszza591SyMwhNQQ17cGZMQOgqFHooaW8gwSrObgQIhAPlyEIXvjbITDLlgDzNLiGMYqSyNELR3gqxQBBFc3fhv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42548},"main":"./dist/index.js","_from":"file:11ty.ts-0.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"echo \"Error: no test specified\" && exit 1","build":"tsup --minify","postversion":"pnpm bump"},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"prettier":"@sissel/prettier-config","_resolved":"/private/var/folders/1x/7shg2fmd26b7d4_yzv7frxdw0000gp/T/ad9cd83f720fc615847a94a42c91b4e8/11ty.ts-0.0.2.tgz","_integrity":"sha512-ELi6x2XkbNbEbbaNj8GnGCaYs0MPKS/IgqVF307Am49GatDpmR7CIclY+ZgqWppvqx5NwZXUknhGObmtBuyXAw==","repository":{"url":"https://github.com/panoply/e11ty/plugins/11ty.ts","type":"git"},"_npmVersion":"10.2.3","description":"An Eleventy wrapper for type supported configuration.","directories":{},"_nodeVersion":"20.10.0","eslintConfig":{"extends":"@sissel/eslint-config","ignorePatterns":["dist"]},"_hasShrinkwrap":false,"devDependencies":{"chokidar":"^3.6.0","type-fest":"^4.15.0"},"peerDependencies":{"@11ty/eleventy":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/11ty.ts_0.0.2_1713545508297_0.5866447805160151","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"11ty.ts","version":"0.0.3","keywords":["11ty","defineConfig","typescript","typings","eleventy","types","declarations","wrapper"],"author":{"url":"https://x.com/niksavvidis","name":"Νίκος Σαβίδης","email":"n.savvidis@gmx.com"},"license":"Apache-2.0","_id":"11ty.ts@0.0.3","maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"homepage":"https://github.com/panoply/e11ty#readme","bugs":{"url":"https://github.com/panoply/e11ty/issues"},"dist":{"shasum":"3483a1cf06ba394407bf3d12339d14a27b3a7269","tarball":"https://registry.npmjs.org/11ty.ts/-/11ty.ts-0.0.3.tgz","fileCount":6,"integrity":"sha512-nZ4ohEMjKKe/pT3RrnS5mbfFDzTSLh9VKrWhA+0QKWyCmAKl9K1jkK7ul1NzSgoxHACsfNtWXj6JVzHWRLsNew==","signatures":[{"sig":"MEUCIQCYftWqgBfUnJQHjOll8H89qa1FtCqmzB4McJQEVkCzmwIgDl82cCIveiF7kBns6DODJCqILiWjmfCnTLr1oFfyQFY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42572},"main":"./dist/index.js","_from":"file:11ty.ts-0.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"echo \"Error: no test specified\" && exit 1","build":"tsup --minify","postversion":"pnpm bump"},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"prettier":"@sissel/prettier-config","_resolved":"/private/var/folders/1x/7shg2fmd26b7d4_yzv7frxdw0000gp/T/567b46bf3ad36fb12a9bb45fd27b9dac/11ty.ts-0.0.3.tgz","_integrity":"sha512-nZ4ohEMjKKe/pT3RrnS5mbfFDzTSLh9VKrWhA+0QKWyCmAKl9K1jkK7ul1NzSgoxHACsfNtWXj6JVzHWRLsNew==","repository":{"url":"git+https://github.com/panoply/e11ty.git","type":"git","directory":"plugins/11ty.ts"},"_npmVersion":"10.2.3","description":"An Eleventy wrapper for type supported configuration.","directories":{},"_nodeVersion":"20.10.0","eslintConfig":{"extends":"@sissel/eslint-config","ignorePatterns":["dist"]},"_hasShrinkwrap":false,"devDependencies":{"chokidar":"^3.6.0","type-fest":"^4.15.0"},"peerDependencies":{"@11ty/eleventy":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/11ty.ts_0.0.3_1713546068703_0.8274026830958878","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"11ty.ts","version":"0.0.5","keywords":["11ty","defineConfig","typescript","typings","eleventy","types","declarations","wrapper"],"author":{"url":"https://x.com/niksavvidis","name":"Νίκος Σαβίδης","email":"n.savvidis@gmx.com"},"license":"Apache-2.0","_id":"11ty.ts@0.0.5","maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"homepage":"https://github.com/panoply/e11ty#readme","bugs":{"url":"https://github.com/panoply/e11ty/issues"},"dist":{"shasum":"54837e2e0ca90fc81016e496bd66b55762c58d27","tarball":"https://registry.npmjs.org/11ty.ts/-/11ty.ts-0.0.5.tgz","fileCount":6,"integrity":"sha512-KctAFaK0Iin2bCkGSiOSTYWEKHMwnV/0bazCef0q8NXT5mahr4OJqqcs6r29BW7gIzKxXpNDro5sfGDKxinL0g==","signatures":[{"sig":"MEUCIQDbH6EAKIAO/kVuGVpkFKF33dwK0ixucHncTpF/MUxoGAIgEVqmbZqJa4FxkeVClujA30KrHeHCQffZbv8HFidlr4o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42555},"main":"./dist/index.js","_from":"file:11ty.ts-0.0.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"echo \"Error: no test specified\" && exit 1","build":"tsup --minify","postversion":"pnpm bump"},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"prettier":"@sissel/prettier-config","_resolved":"/private/var/folders/1x/7shg2fmd26b7d4_yzv7frxdw0000gp/T/4f2d43a260191e1f683885b768bcae8d/11ty.ts-0.0.5.tgz","_integrity":"sha512-KctAFaK0Iin2bCkGSiOSTYWEKHMwnV/0bazCef0q8NXT5mahr4OJqqcs6r29BW7gIzKxXpNDro5sfGDKxinL0g==","repository":{"url":"git+https://github.com/panoply/e11ty.git","type":"git","directory":"packages/11ty.ts"},"_npmVersion":"10.2.3","description":"An Eleventy wrapper for type supported configuration.","directories":{},"_nodeVersion":"20.10.0","eslintConfig":{"extends":"@sissel/eslint-config","ignorePatterns":["dist"]},"_hasShrinkwrap":false,"devDependencies":{"chokidar":"^3.6.0","type-fest":"^4.15.0"},"peerDependencies":{"@11ty/eleventy":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/11ty.ts_0.0.5_1725846285941_0.03373166801775174","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"11ty.ts","version":"0.0.6","keywords":["11ty","defineConfig","typescript","typings","eleventy","types","declarations","wrapper"],"author":{"url":"https://x.com/niksavvidis","name":"Νίκος Σαβίδης","email":"n.savvidis@gmx.com"},"license":"Apache-2.0","_id":"11ty.ts@0.0.6","maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"homepage":"https://github.com/panoply/e11ty#readme","bugs":{"url":"https://github.com/panoply/e11ty/issues"},"dist":{"shasum":"d1a879873551290ea6251256fc5486754cffeb71","tarball":"https://registry.npmjs.org/11ty.ts/-/11ty.ts-0.0.6.tgz","fileCount":6,"integrity":"sha512-F8z9iaRiBwGWf01o8QVHmHw8QWNYiAdOzGCA+T6IkvyygGKgNNT5w76mvsoOKNlf6eVGmCUokscoyD46WkbuOQ==","signatures":[{"sig":"MEYCIQD8ckB57vdpLWCm3ctKPp53qfkPctdaXa/umluRkEhyggIhAJVEWI/87XgGwAwosNBShtN/EcysvnLhMWUDxBAWXQiw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55964},"main":"./dist/index.js","_from":"file:11ty.ts-0.0.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"echo \"Error: no test specified\" && exit 1","build":"tsup --minify","postversion":"pnpm bump"},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"prettier":"@sissel/prettier-config","_resolved":"/private/var/folders/1x/7shg2fmd26b7d4_yzv7frxdw0000gp/T/1b09d53751aa7078679082ae0a17a388/11ty.ts-0.0.6.tgz","_integrity":"sha512-F8z9iaRiBwGWf01o8QVHmHw8QWNYiAdOzGCA+T6IkvyygGKgNNT5w76mvsoOKNlf6eVGmCUokscoyD46WkbuOQ==","repository":{"url":"git+https://github.com/panoply/e11ty.git","type":"git","directory":"packages/11ty.ts"},"_npmVersion":"10.9.2","description":"An Eleventy wrapper for type supported configuration.","directories":{},"_nodeVersion":"22.14.0","eslintConfig":{"extends":"@sissel/eslint-config","ignorePatterns":["dist"]},"_hasShrinkwrap":false,"devDependencies":{"chokidar":"^3.6.0","type-fest":"^4.15.0"},"peerDependencies":{"@11ty/eleventy":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/11ty.ts_0.0.6_1753537365716_0.6696842984319387","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"11ty.ts","version":"0.0.7","license":"Apache-2.0","description":"An Eleventy wrapper for type supported configuration.","author":{"name":"Νίκος Σαβίδης","email":"n.savvidis@gmx.com","url":"https://x.com/niksavvidis"},"keywords":["11ty","defineConfig","typescript","typings","eleventy","types","declarations","wrapper"],"repository":{"type":"git","url":"git+https://github.com/panoply/e11ty.git","directory":"packages/11ty.ts"},"bugs":{"url":"https://github.com/panoply/e11ty/issues"},"module":"./dist/index.mjs","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","build":"tsup --minify","postversion":"pnpm bump","test":"echo \"Error: no test specified\" && exit 1"},"prettier":"@sissel/prettier-config","eslintConfig":{"extends":"@sissel/eslint-config","ignorePatterns":["dist"]},"devDependencies":{"chokidar":"^3.6.0","type-fest":"^4.15.0"},"peerDependencies":{"@11ty/eleventy":"^3.0.0"},"_id":"11ty.ts@0.0.7","gitHead":"b906fc372dec394fb89c422f893f8baa7a9f9d13","homepage":"https://github.com/panoply/e11ty#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-71Jqaimpefof8pt51lIy59Ea2GqU9Bmp3mejWznxVPxxhKBbWBIKBdVsxWSRJSoudUw3KPzpSaThw+KqR3yo3w==","shasum":"1f78e9ee4943dd1c3fc47189df06c40ac53333ba","tarball":"https://registry.npmjs.org/11ty.ts/-/11ty.ts-0.0.7.tgz","fileCount":6,"unpackedSize":58559,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEuDalw9H9xJF+oDfzMMJ43sGSKYZQX0y1E2ZeTJuOfPAiA03s8Hl3aSOZjYaZi1bFG1Oi5rtrmggi13QOazUV8j7A=="}]},"_npmUser":{"name":"sissel","email":"nicos.savidis@gmail.com"},"directories":{},"maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/11ty.ts_0.0.7_1767346592370_0.8499605909915189"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-19T15:56:45.976Z","modified":"2026-01-02T09:36:32.715Z","0.0.1":"2024-04-19T15:56:46.289Z","0.0.2":"2024-04-19T16:51:48.466Z","0.0.3":"2024-04-19T17:01:08.855Z","0.0.5":"2024-09-09T01:44:46.093Z","0.0.6":"2025-07-26T13:42:45.953Z","0.0.7":"2026-01-02T09:36:32.509Z"},"bugs":{"url":"https://github.com/panoply/e11ty/issues"},"author":{"name":"Νίκος Σαβίδης","email":"n.savvidis@gmx.com","url":"https://x.com/niksavvidis"},"license":"Apache-2.0","homepage":"https://github.com/panoply/e11ty#readme","keywords":["11ty","defineConfig","typescript","typings","eleventy","types","declarations","wrapper"],"repository":{"type":"git","url":"git+https://github.com/panoply/e11ty.git","directory":"packages/11ty.ts"},"description":"An Eleventy wrapper for type supported configuration.","maintainers":[{"name":"sissel","email":"nicos.savidis@gmail.com"}],"readme":"# 11ty.ts (Type Support)\n\nType support for [Eleventy](https://www.11ty.dev/) using `defineConfig` wrapper. This module can be dropped in to your `.eleventy.js` configuration file and will provide type support to the entire 11ty API, with JSDoc annotated descriptions and documentation linked references.\n\n### Why?\n\nType support is assumed nowadays and when modules don't provide this basic capability it makes life difficult and reflects poorly on otherwise good projects (like Eleventy). The team behind Eleventy have floated type support but seem hesitant and from my understanding were considering using JSDoc types (We live in a society, We are not animals). The last time I actively looked in the issues it was clear and rather apparent that those discussing type support or working on it were not very well versed on the subject (imo).\n\n##### References\n\n- https://github.com/11ty/eleventy/issues/2317\n- https://github.com/11ty/eleventy/pull/2091\n- https://github.com/11ty/eleventy/pull/720\n- https://github.com/11ty/eleventy/issues/814\n\n# Install\n\nThe module requires [@11ty/eleventy](https://www.npmjs.com/package/@11ty/eleventy) be installed along side it.\n\n```cli\npnpm add 11ty.ts @11ty/eleventy -D\n```\n\n# Usage\n\nPass it to the `module.exports` within a `.eleventy.js` or `.eleventy.cjs` configuration file.\n\n<!-- prettier-ignore -->\n```ts\nconst eleventy = require(\"11ty.ts\");\n\nmodule.exports = eleventy(function(eleventyConfig) {\n\n  config.addPlugin()\n\n  return {\n    htmlTemplateEngine: 'liquid',\n    passthroughFileCopy: false,\n    pathPrefix: '',\n    templateFormats: [\n      'liquid',\n      'json',\n      'md',\n      'css',\n      'html',\n      'yaml'\n    ],\n    dir: {\n      input: 'site',\n      output: 'public',\n      includes: 'views/include',\n      layouts: 'views/layouts',\n      data: 'data'\n    }\n  }\n});\n```\n\nIn addition to the default export, you may optionally prefer to use the `defineConfig` named export:\n\n<!-- prettier-ignore-->\n```ts\nconst { defineConfig } = require('11ty.ts');\n\nmodule.exports = defineConfig(eleventyConfig => {\n\n  // {}\n\n})\n```\n\n# Auto-Typed Plugins\n\nEleventy plugins which provide typings within their distribution package will work if the syntactical structure of the plugin parameters apply options at index `1` of the argument order. The type utilities exposed in this module will convert the function parameters of plugins to a **tuple** and then reference the second argument, which is assumed to be the plugin options. It's far from an elegant approach, but due to the manner in which Eleventy digests plugins, this (for now) seems to be the only viable approach I've come up with.\n\n### Example\n\nFor the sake of brevity, let's assume you've installed a plugin from the NPM register called `11ty-plugin-example` and this (fake) plugin has the following type declaration accompanied in the distribution package.\n\n```ts\n// Assuming the plugins uses this argument order\nexport function pluginName(eleventyConfig, options: {\n  foo: string;\n  bar: number;\n  baz: boolean;\n}) {\n\n  // ...\n\n}\n```\n\nThis is rather typical and plugins which adhere to the above will be automatically typed. Using the `eleventyConfig.addPlugin` method will simply reference parameter `options` via tuple, so in your `.eleventy.js` file, completions will be applied when doing the following:\n\n```ts\nconst { defineConfig } = require('11ty.ts');\nconst { pluginName } = require('11ty-plugin-example');\n\nmodule.exports = defineConfig(eleventyConfig => {\n\n  eleventyConfig.addPlugin(pluginName, {\n\n    // Auto-typing will occur and intellisense completes\n    // foo, bar and baz options.\n\n  })\n\n})\n```\n\n\n### License\n\n[Apache 2.0](#LICENSE)\n","readmeFilename":"readme.md"}