{"id":22337966,"url":"https://github.com/fallaciousreasoning/rollup-plugin-svelte-types","last_synced_at":"2025-06-17T00:36:13.035Z","repository":{"id":58413920,"uuid":"530893211","full_name":"fallaciousreasoning/rollup-plugin-svelte-types","owner":"fallaciousreasoning","description":"A plugin for exporting type definitions for Svelte","archived":false,"fork":false,"pushed_at":"2022-08-31T02:13:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T08:38:56.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fallaciousreasoning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-31T01:29:12.000Z","updated_at":"2022-08-31T02:05:41.000Z","dependencies_parsed_at":"2022-09-16T00:52:14.381Z","dependency_job_id":null,"html_url":"https://github.com/fallaciousreasoning/rollup-plugin-svelte-types","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fallaciousreasoning/rollup-plugin-svelte-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Frollup-plugin-svelte-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Frollup-plugin-svelte-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Frollup-plugin-svelte-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Frollup-plugin-svelte-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fallaciousreasoning","download_url":"https://codeload.github.com/fallaciousreasoning/rollup-plugin-svelte-types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Frollup-plugin-svelte-types/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268632,"owners_count":22983601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T06:12:39.628Z","updated_at":"2025-06-17T00:36:13.012Z","avatar_url":"https://github.com/fallaciousreasoning.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-svelte-types\n\n🍣 A Rollup plugin which generates type definitions for Svelte Components, including Props and Events.\n\n## Requirements\n\nThis plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.\n\n## Install\n\nUsing npm:\n\n```console\nnpm install rollup-plugin-svelte-types --save-dev\n```\n\n## Usage\n\nCreate a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin:\n\n```js\nimport svelteDts from 'rollup-plugin-svelte-types';\n\nexport default {\n  input: 'src/entry.js',\n  // ...\n  plugins: [\n    svelteDts()\n  ]\n};\n```\n\nThen call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api).\n\n## Options\n\nIt's possible to use configure a few settings:\n\n```js\nimport svelteDts from 'rollup-plugin-svelte-types';\n\nexport default {\n  input: 'src/entry.js',\n  // ...\n  plugins: [\n    svelteDts({\n        libRoot: './src', // The root directory to generate the type definitions for. Defaults to './'\n        declarationDir: './dist/types' // The directory to place the generated definitions in. Defaults to './types'\n    })\n  ]\n};\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallaciousreasoning%2Frollup-plugin-svelte-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffallaciousreasoning%2Frollup-plugin-svelte-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallaciousreasoning%2Frollup-plugin-svelte-types/lists"}