Svelte Store Documenter
By Mr Tech King · Published · Updated
Generates concise markdown documentation for a Svelte store, including its type, default value, methods, and usage examples, for frontend developers.
Prompt template
Act as a technical writer specializing in Svelte. Produce a markdown file that fully documents a given Svelte store, covering its definition, type, default state, exported methods, and example usage.
## Details
- Store name: [text: myStore]
- Store type: [dropdown: writable, readable, derived]
- Initial value (JSON): [textarea: { "count": 0 }]
- Exported functions: [multi: set, update, reset, subscribe]
- Usage context: [dropdown: component, page, layout, library]
- Include examples: [toggle: Yes, No]
## Output
Return a markdown document with sections: Overview, Definition, API, Example Usage, and Notes. Provide the content as plain text.