/**
* Public entry point demonstrating the re-export forms svelte-docinfo tracks.
* @module
*/
// same-name re-exports — recorded as `reExports` here
// and `alsoExportedFrom` on the canonical declarations
export { add, multiply, sumBy, type MathConfig } from './math.js';
export { Counter } from './counter.svelte.js';
export { default as Calculator } from './Calculator.svelte';
export { default as Card } from './Card.svelte';
export { default as List } from './List.svelte';
// renamed re-export — synthesizes an alias declaration with `aliasOf`
export { addVector as vectorAdd } from './math.js';
// namespace re-export — synthesizes a `namespace` declaration projecting shapes.ts
export * as shapes from './shapes.js';
// direct external re-export — recorded on `externalReExports`, no declaration synthesized
export type { Snippet } from 'svelte';
{
"path": "index.ts",
"declarations": [
{
"name": "Calculator",
"kind": "component",
"sourceLine": 10,
"aliasOf": {
"module": "Calculator.svelte",
"name": "Calculator"
},
"props": [
{
"name": "result",
"type": "number",
"optional": true,
"description": "Current result (bindable).",
"defaultValue": "0",
"bindable": true
},
{
"name": "config",
"type": "MathConfig",
"optional": true,
"description": "Math configuration."
},
{
"name": "mode",
"type": "\"add\" | \"multiply\"",
"typeInfo": {
"kind": "union",
"members": [
{
"kind": "literal",
"value": "add",
"text": "\"add\""
},
{
"kind": "literal",
"value": "multiply",
"text": "\"multiply\""
}
]
},
"optional": true,
"description": "Operation mode.",
"defaultValue": "'add'"
},
{
"name": "disabled",
"type": "boolean",
"optional": true,
"description": "Disable the calculator.",
"defaultValue": "false"
},
{
"name": "onresult",
"type": "(value: number) => void",
"optional": true,
"description": "Called with each new result.",
"parameters": [
{
"name": "value",
"type": "number"
}
],
"returnType": "void"
}
],
"docComment": "A calculator that applies `mode` to `result` and the entered number,\noptionally rounding to the configured precision."
},
{
"name": "Card",
"kind": "component",
"sourceLine": 11,
"aliasOf": {
"module": "Card.svelte",
"name": "Card"
},
"externalTypes": [
"HTMLAttributes<HTMLDivElement>"
],
"props": [
{
"name": "heading",
"type": "string",
"optional": true,
"description": "Heading rendered when no `header` snippet is provided."
},
{
"name": "header",
"type": "Snippet<[heading: string]>",
"typeInfo": {
"kind": "reference",
"name": "Snippet",
"typeArgs": [
{
"kind": "tuple",
"elements": [
{
"name": "heading",
"type": {
"kind": "intrinsic",
"text": "string"
}
}
]
}
]
},
"optional": true,
"description": "Custom header content, receives the resolved heading.",
"parameters": [
{
"name": "heading",
"type": "string"
}
]
},
{
"name": "children",
"type": "Snippet<[]>",
"description": "Card body content."
}
],
"acceptsChildren": true,
"docComment": "A card with a heading or custom header above its body content. Extra\nattributes pass through to the root element."
},
{
"name": "List",
"kind": "component",
"sourceLine": 12,
"genericParams": [
{
"name": "T"
}
],
"aliasOf": {
"module": "List.svelte",
"name": "List"
},
"props": [
{
"name": "items",
"type": "readonly T[]",
"description": "Items to render, in order."
},
{
"name": "item",
"type": "Snippet<[item: T, index: number]>",
"typeInfo": {
"kind": "reference",
"name": "Snippet",
"typeArgs": [
{
"kind": "tuple",
"elements": [
{
"name": "item",
"type": {
"kind": "other",
"text": "T"
}
},
{
"name": "index",
"type": {
"kind": "intrinsic",
"text": "number"
}
}
]
}
]
},
"description": "Renders one item, receiving it and its index.",
"parameters": [
{
"name": "item",
"type": "T"
},
{
"name": "index",
"type": "number"
}
]
},
{
"name": "empty",
"type": "Snippet<[]>",
"optional": true,
"description": "Rendered in place of the list when `items` is empty."
}
],
"docComment": "Renders `items` as a list, each through the `item` snippet, with an\noptional fallback when the list is empty."
},
{
"name": "vectorAdd",
"kind": "function",
"docComment": "Add one vector into another.",
"typeSignature": "(target: Vector2, source: Vector2): void",
"sourceLine": 15,
"mutates": {
"target": "adds into its `x` and `y` fields rather than returning a new vector"
},
"aliasOf": {
"module": "math.ts",
"name": "addVector"
},
"parameters": [
{
"name": "target",
"type": "Vector2",
"description": "vector to mutate"
},
{
"name": "source",
"type": "Vector2",
"description": "vector to add"
}
],
"returnType": "void"
},
{
"name": "shapes",
"kind": "namespace",
"sourceLine": 18,
"module": "shapes.ts"
}
],
"moduleComment": "Public entry point demonstrating the re-export forms svelte-docinfo tracks.",
"dependencies": [
"Calculator.svelte",
"Card.svelte",
"counter.svelte.ts",
"List.svelte",
"math.ts",
"shapes.ts"
],
"reExports": [
{
"name": "add",
"module": "math.ts",
"sourceLine": 8
},
{
"name": "Counter",
"module": "counter.svelte.ts",
"sourceLine": 9
},
{
"name": "MathConfig",
"module": "math.ts",
"typeOnly": true,
"sourceLine": 8
},
{
"name": "multiply",
"module": "math.ts",
"sourceLine": 8
},
{
"name": "sumBy",
"module": "math.ts",
"sourceLine": 8
}
],
"externalReExports": [
{
"name": "Snippet",
"specifier": "svelte",
"typeOnly": true,
"sourceLine": 21
}
]
}