[{"data":1,"prerenderedAt":3895,"buildId":3896},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fjsx":3},{"id":4,"title":5,"body":6,"description":3878,"extension":3879,"frontmatter":3880,"heading":3885,"meta":3886,"navigation":3888,"order":3839,"path":3889,"seo":3890,"sitemap":3891,"source":3892,"stem":3893,"__hash__":3894},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fjsx.md","JSX renderer - kubb\u002Fjsx component reference",{"type":7,"value":8,"toc":3838},"minimark",[9,25,30,59,63,82,96,100,110,183,189,201,430,434,593,605,610,616,700,703,709,728,867,938,942,954,1052,1139,1144,1154,1195,1306,1311,1317,1323,1367,1535,1540,1545,1615,1630,1864,1869,1874,1921,1926,2075,2079,2089,2148,2251,2254,2268,2291,2399,2404,2409,2471,2521,2526,2529,2641,2714,2719,2732,2794,2798,2804,2855,2950,2953,2972,3234,3239,3246,3305,3355,3360,3373,3401,3406,3416,3461,3466,3469,3522,3527,3530,3557,3560,3565,3571,3598,3672,3676,3679,3690,3722,3796,3817],[10,11,12,16,17,24],"p",{},[13,14,15],"code",{},"kubb\u002Fjsx"," lets you write a template's files as JSX instead of ",[18,19,21],"a",{"href":20},"\u002Fdocs\u002F5.x\u002Freference\u002Fkit\u002Fast#factory-functions",[13,22,23],{},"ast.factory"," node builders.",[26,27,29],"h2",{"id":28},"renderers","Renderers",[10,31,32,33,36,37,40,41,44,45,47,48,50,51,54,55,58],{},"A renderer turns what a template returns into ",[13,34,35],{},"FileNode","s. Kit renders JSX with ",[13,38,39],{},"jsxRenderer"," unless you pass another renderer, so ",[13,42,43],{},"addTemplate(template)"," is enough for a JSX template. A template that returns ",[13,46,35],{},"s from ",[13,49,23],{}," needs no renderer either. Pass ",[13,52,53],{},"addTemplate(template, { renderer })"," only for another renderer, or ",[13,56,57],{},"renderer: null"," to skip rendering.",[60,61],"mermaid",{"svg":62},"\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" class=\"pele pele-flowchart\" viewBox=\"0 0 997 64\" width=\"997\" height=\"64\" style=\"--_bg:var(--pele-bg,#fff);--_fg:var(--pele-fg,#1f1f1f);--_m:var(--pele-muted,#6e6e6e);--_l:var(--pele-line,#1f1f1f);--_s:var(--pele-surface,#f3f3f3);--_a:var(--pele-surface-alt,#e6e6e6);--_b:var(--pele-border,#8a8a8a);--_c:var(--pele-accent,#5b7bd5);color:var(--_fg);--_r:var(--pele-radius,4px);--_fm:var(--pele-font-mono,monospace);font:16px sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;font-family:var(--pele-font,sans-serif)\" fill=\"var(--_fg)\" role=\"graphics-document document\" aria-roledescription=\"flowchart\">\u003Cg class=\"pele-edges\" fill=\"none\" stroke=\"var(--_l)\" stroke-linecap=\"round\">\u003Cg class=\"pele-edge\" data-id=\"L_gen_renderer_0\">\u003Cpath d=\"M198.72,32L239.72,32\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M246.72,32L238.72,35.36L238.72,28.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_renderer_nodes_0\">\u003Cpath d=\"M368.96,32L409.96,32\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M416.96,32L408.96,35.36L408.96,28.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_nodes_parser_0\">\u003Cpath d=\"M540.98,32L581.98,32\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M588.98,32L580.98,35.36L580.98,28.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003Cg class=\"pele-edge\" data-id=\"L_parser_out_0\">\u003Cpath d=\"M803.7,32L844.7,32\"\u002F>\u003Cpath class=\"pele-marker\" d=\"M851.7,32L843.7,35.36L843.7,28.64Z\" fill=\"var(--_l)\" stroke=\"none\"\u002F>\u003C\u002Fg>\u003C\u002Fg>\u003Cg class=\"pele-nodes\">\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"gen\" transform=\"translate(103.36,32)\">\u003Crect x=\"-95.36\" y=\"-24\" width=\"190.72\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Template returns JSX\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect core\" data-id=\"renderer\" transform=\"translate(307.84,32)\">\u003Crect x=\"-61.12\" y=\"-24\" width=\"122.24\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">jsxRenderer\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"nodes\" transform=\"translate(478.97,32)\">\u003Crect x=\"-62.01\" y=\"-24\" width=\"124.02\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">FileNode list\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"parser\" transform=\"translate(696.34,32)\">\u003Crect x=\"-107.36\" y=\"-24\" width=\"214.72\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Parser, such as parserTs\u003C\u002Ftext>\u003C\u002Fg>\u003Cg class=\"pele-node pele-shape-rect\" data-id=\"out\" transform=\"translate(919.94,32)\">\u003Crect x=\"-68.25\" y=\"-24\" width=\"136.5\" height=\"48\" fill=\"var(--_s)\" stroke=\"var(--_b)\" style=\"rx:var(--_r)\"\u002F>\u003Ctext class=\"pele-label\" x=\"0\" y=\"5.6\" text-anchor=\"middle\">Generated file\u003C\u002Ftext>\u003C\u002Fg>\u003C\u002Fg>\u003C\u002Fsvg>",[64,65,67,68,70,71,74,75,81],"blockquote",{"as":66},"note","",[13,69,39],{}," does not use React. Components run once as plain functions, so hooks, suspense, and class components do not work. An ",[13,72,73],{},"async"," component or an element from another JSX runtime, such as React, fails the render with ",[18,76,78],{"href":77},"\u002Fdocs\u002F5.x\u002Freference\u002Fdiagnostics#kubb-render-failed",[13,79,80],{},"KUBB_RENDER_FAILED",".",[10,83,84,85,88,89,92,93,81],{},"For another template format, pass ",[13,86,87],{},"createRenderer"," from ",[13,90,91],{},"kubb\u002Fkit"," a factory that returns ",[13,94,95],{},"{ render, files, [Symbol.dispose] }",[26,97,99],{"id":98},"setup","Setup",[10,101,102,103,106,107,109],{},"Point ",[13,104,105],{},"tsconfig.json"," at the ",[13,108,15],{}," runtime instead of React:",[111,112,116],"pre",{"language":113,"filename":105,"code":114,"class":115},"json","{\n \"compilerOptions\": {\n \"jsx\": \"react-jsx\",\n \"jsxImportSource\": \"kubb\u002Fjsx\"\n }\n}","highlights",[13,117,119,128,129,128,143,128,160,128,172,128,179],{"class":118},"language-json",[120,121,124],"span",{"class":122,"style":123},"line","display: inline",[120,125,127],{"style":126},"color:#005cc5;--hls-dark:#79b8ff","{","\n",[120,130,131,134,137,141],{"class":122,"style":123},[120,132,133],{"style":126}," ",[120,135,136],{"style":126},"\"compilerOptions\"",[120,138,140],{"style":139},"color:#d73a49;--hls-dark:#f97583",": ",[120,142,127],{"style":126},[120,144,145,148,151,153,157],{"class":122,"style":123},[120,146,147],{"style":126}," ",[120,149,150],{"style":126},"\"jsx\"",[120,152,140],{"style":139},[120,154,156],{"style":155},"color:#032f62;--hls-dark:#9ecbff","\"react-jsx\"",[120,158,159],{"style":139},",",[120,161,162,164,167,169],{"class":122,"style":123},[120,163,147],{"style":139},[120,165,166],{"style":126},"\"jsxImportSource\"",[120,168,140],{"style":139},[120,170,171],{"style":155},"\"kubb\u002Fjsx\"",[120,173,174,176],{"class":122,"style":123},[120,175,133],{"style":155},[120,177,178],{"style":126},"}",[120,180,181],{"class":122,"style":123},[120,182,178],{"style":126},[26,184,186],{"id":185},"jsxrenderer",[13,187,188],{},"jsxRenderer()",[10,190,191,193,194,197,198,81],{},[13,192,188],{}," returns a renderer. Call ",[13,195,196],{},"render"," with a JSX element, then read ",[13,199,200],{},"files",[111,202,206],{"language":203,"filename":204,"code":205,"class":115},"tsx","render.tsx","import { File, Function, Type, jsxRenderer } from 'kubb\u002Fjsx'\n\nconst renderer = jsxRenderer()\n\nawait renderer.render(\n \u003CFile baseName=\"petStore.ts\" path=\"src\u002Fgen\u002FpetStore.ts\">\n \u003CType export name=\"Pet\">\n {'{ id: number; name: string }'}\n \u003C\u002FType>\n \u003CFunction export name=\"getPet\" async>\n {\"return fetch('\u002Fpets')\"}\n \u003C\u002FFunction>\n \u003C\u002FFile>,\n)\n\nconst files = renderer.files",[13,207,209,128,247,128,249,128,265,128,267,128,282,128,313,128,332,128,344,128,355,128,375,128,386,128,396,128,408,128,413,128,415],{"class":208},"language-tsx",[120,210,211,214,217,221,224,227,229,232,234,238,241,244],{"class":122,"style":123},[120,212,213],{"style":139},"import ",[120,215,216],{"style":126},"{ ",[120,218,220],{"style":219},"color:#6f42c1;--hls-dark:#b392f0","File",[120,222,223],{"style":139},", ",[120,225,226],{"style":219},"Function",[120,228,223],{"style":139},[120,230,231],{"style":219},"Type",[120,233,223],{"style":139},[120,235,237],{"style":236},"color:#24292e;--hls-dark:#e1e4e8","jsxRenderer ",[120,239,240],{"style":126},"} ",[120,242,243],{"style":139},"from ",[120,245,246],{"style":155},"'kubb\u002Fjsx'",[120,248],{"class":122,"style":123},[120,250,251,254,257,260,262],{"class":122,"style":123},[120,252,253],{"style":139},"const ",[120,255,256],{"style":236},"renderer ",[120,258,259],{"style":139},"= ",[120,261,39],{"style":219},[120,263,264],{"style":126},"()",[120,266],{"class":122,"style":123},[120,268,269,272,275,277,279],{"class":122,"style":123},[120,270,271],{"style":139},"await ",[120,273,274],{"style":236},"renderer",[120,276,81],{"style":139},[120,278,196],{"style":219},[120,280,281],{"style":126},"(",[120,283,284,286,289,293,296,299,302,305,307,310],{"class":122,"style":123},[120,285,133],{"style":126},[120,287,288],{"style":126},"\u003C",[120,290,292],{"style":291},"color:#22863a;--hls-dark:#85e89d","File ",[120,294,295],{"style":219},"baseName",[120,297,298],{"style":139},"=",[120,300,301],{"style":155},"\"petStore.ts\" ",[120,303,304],{"style":219},"path",[120,306,298],{"style":139},[120,308,309],{"style":155},"\"src\u002Fgen\u002FpetStore.ts\"",[120,311,312],{"style":126},">",[120,314,315,317,319,322,325,327,330],{"class":122,"style":123},[120,316,147],{"style":236},[120,318,288],{"style":126},[120,320,321],{"style":291},"Type ",[120,323,324],{"style":219},"export name",[120,326,298],{"style":139},[120,328,329],{"style":155},"\"Pet\"",[120,331,312],{"style":126},[120,333,334,337,339,342],{"class":122,"style":123},[120,335,336],{"style":236}," ",[120,338,127],{"style":126},[120,340,341],{"style":155},"'{ id: number; name: string }'",[120,343,178],{"style":126},[120,345,346,348,351,353],{"class":122,"style":123},[120,347,147],{"style":236},[120,349,350],{"style":126},"\u003C\u002F",[120,352,231],{"style":291},[120,354,312],{"style":126},[120,356,357,359,361,364,366,368,371,373],{"class":122,"style":123},[120,358,147],{"style":236},[120,360,288],{"style":126},[120,362,363],{"style":291},"Function ",[120,365,324],{"style":219},[120,367,298],{"style":139},[120,369,370],{"style":155},"\"getPet\" ",[120,372,73],{"style":219},[120,374,312],{"style":126},[120,376,377,379,381,384],{"class":122,"style":123},[120,378,336],{"style":236},[120,380,127],{"style":126},[120,382,383],{"style":155},"\"return fetch('\u002Fpets')\"",[120,385,178],{"style":126},[120,387,388,390,392,394],{"class":122,"style":123},[120,389,147],{"style":236},[120,391,350],{"style":126},[120,393,226],{"style":291},[120,395,312],{"style":126},[120,397,398,400,402,404,406],{"class":122,"style":123},[120,399,133],{"style":236},[120,401,350],{"style":126},[120,403,220],{"style":291},[120,405,312],{"style":126},[120,407,159],{"style":139},[120,409,410],{"class":122,"style":123},[120,411,412],{"style":126},")",[120,414],{"class":122,"style":123},[120,416,417,419,422,424,426,428],{"class":122,"style":123},[120,418,253],{"style":139},[120,420,421],{"style":236},"files ",[120,423,259],{"style":139},[120,425,274],{"style":236},[120,427,81],{"style":139},[120,429,200],{"style":126},[26,431,433],{"id":432},"built-in-components","Built-in components",[435,436,437,450],"table",{},[438,439,440],"thead",{},[441,442,443,447],"tr",{},[444,445,446],"th",{},"Group",[444,448,449],{},"Components",[451,452,453,505,537,577],"tbody",{},[441,454,455,462],{},[456,457,458],"td",{},[18,459,461],{"href":460},"#core","Core",[456,463,464,223,469,223,475,223,481,223,487,223,493,223,499],{},[18,465,467],{"href":466},"#file",[13,468,220],{},[18,470,472],{"href":471},"#code",[13,473,474],{},"Code",[18,476,478],{"href":477},"#raw",[13,479,480],{},"Raw",[18,482,484],{"href":483},"#origin",[13,485,486],{},"Origin",[18,488,490],{"href":489},"#file-import",[13,491,492],{},"File.Import",[18,494,496],{"href":495},"#file-export",[13,497,498],{},"File.Export",[18,500,502],{"href":501},"#schema",[13,503,504],{},"Schema",[441,506,507,513],{},[456,508,509],{},[18,510,512],{"href":511},"#javascript","JavaScript",[456,514,515,223,521,223,526,223,532],{},[18,516,518],{"href":517},"#const",[13,519,520],{},"Const",[18,522,524],{"href":523},"#function",[13,525,226],{},[18,527,529],{"href":528},"#function-arrow",[13,530,531],{},"Function.Arrow",[18,533,535],{"href":534},"#type",[13,536,231],{},[441,538,539,545],{},[456,540,541],{},[18,542,544],{"href":543},"#markdown","Markdown",[456,546,547,223,553,223,559,223,565,223,571],{},[18,548,550],{"href":549},"#callout",[13,551,552],{},"Callout",[18,554,556],{"href":555},"#frontmatter",[13,557,558],{},"Frontmatter",[18,560,562],{"href":561},"#heading",[13,563,564],{},"Heading",[18,566,568],{"href":567},"#list",[13,569,570],{},"List",[18,572,574],{"href":573},"#paragraph",[13,575,576],{},"Paragraph",[441,578,579,585],{},[456,580,581],{},[18,582,584],{"href":583},"#jsx","JSX",[456,586,587],{},[18,588,590],{"href":589},"#jsx-component",[13,591,592],{},"Jsx",[10,594,595,596,598,599,223,601,604],{},"Inside a code component, ",[13,597,474],{}," or ",[13,600,480],{},[13,602,603],{},"\u003Cbr \u002F>"," adds a line break.",[606,607,609],"h3",{"id":608},"choose-a-component","Choose a component",[10,611,612,613,615],{},"Everything inside a ",[13,614,220],{}," is an import, an export, or a source block. Pick the source block by what the content is:",[435,617,618,631],{},[438,619,620],{},[441,621,622,625,628],{},[444,623,624],{},"The content is",[444,626,627],{},"Use",[444,629,630],{},"Barrels list it",[451,632,633,659,674,688],{},[441,634,635,638,656],{},[456,636,637],{},"A declaration you write in JSX",[456,639,640,223,644,598,648,652,653],{},[18,641,642],{"href":517},[13,643,520],{},[18,645,646],{"href":534},[13,647,231],{},[18,649,650],{"href":523},[13,651,226],{}," with ",[13,654,655],{},"export",[456,657,658],{},"Yes, when exported",[441,660,661,664,672],{},[456,662,663],{},"A declaration a printer or a template already printed",[456,665,666,652,670],{},[18,667,668],{"href":471},[13,669,474],{},[13,671,655],{},[456,673,658],{},[441,675,676,679,685],{},[456,677,678],{},"Text that declares nothing, such as a statement or JSON",[456,680,681],{},[18,682,683],{"href":477},[13,684,480],{},[456,686,687],{},"No",[441,689,690,692,698],{},[456,691,544],{},[456,693,694,695],{},"A ",[18,696,697],{"href":543},"Markdown component",[456,699,687],{},[606,701,461],{"id":702},"core",[704,705,707],"h4",{"id":706},"file",[13,708,220],{},[10,710,711,712,714,715,223,717,719,720,722,723,598,725,727],{},"With ",[13,713,295],{}," and ",[13,716,304],{},[13,718,220],{}," declares a generated file. Without them, it renders its children inline. Text directly in a ",[13,721,220],{},", outside ",[13,724,474],{},[13,726,480],{},", throws.",[435,729,730,742],{},[438,731,732],{},[441,733,734,737,739],{},[444,735,736],{},"Prop",[444,738,231],{},[444,740,741],{},"Description",[451,743,744,761,775,790,805,819,833,852],{},[441,745,746,750,755],{},[456,747,748],{},[13,749,295],{},[456,751,752],{},[13,753,754],{},"`${string}.${string}`",[456,756,757,758],{},"The file name, such as ",[13,759,760],{},"petStore.ts",[441,762,763,767,772],{},[456,764,765],{},[13,766,304],{},[456,768,769],{},[13,770,771],{},"string",[456,773,774],{},"The full output path",[441,776,777,782,787],{},[456,778,779],{},[13,780,781],{},"meta?",[456,783,784],{},[13,785,786],{},"object | null",[456,788,789],{},"Metadata for plugins to read",[441,791,792,797,802],{},[456,793,794],{},[13,795,796],{},"banner?",[456,798,799],{},[13,800,801],{},"string | null",[456,803,804],{},"Text before the source blocks",[441,806,807,812,816],{},[456,808,809],{},[13,810,811],{},"footer?",[456,813,814],{},[13,815,801],{},[456,817,818],{},"Text after the source blocks",[441,820,821,826,830],{},[456,822,823],{},[13,824,825],{},"copy?",[456,827,828],{},[13,829,801],{},[456,831,832],{},"An absolute path of a file to copy into the output",[441,834,835,840,845],{},[456,836,837],{},[13,838,839],{},"inline?",[456,841,842],{},[13,843,844],{},"boolean | null",[456,846,847,848,81],{},"Never writes the file. Files that import from it get its declarations. See ",[18,849,851],{"href":850},"#inline-sources","Inline sources",[441,853,854,859,864],{},[456,855,856],{},[13,857,858],{},"children?",[456,860,861],{},[13,862,863],{},"KubbReactNode",[456,865,866],{},"The file's sources, imports, and exports",[111,868,870],{"language":203,"code":869,"class":115},"\u003CFile baseName=\"petStore.ts\" path=\"src\u002Fmodels\u002FpetStore.ts\">\n \u003CType export name=\"Pet\">\n {`{ id: number; name: string }`}\n \u003C\u002FType>\n\u003C\u002FFile>",[13,871,872,128,893,128,909,128,920,128,930],{"class":208},[120,873,874,876,878,880,882,884,886,888,891],{"class":122,"style":123},[120,875,288],{"style":126},[120,877,292],{"style":291},[120,879,295],{"style":219},[120,881,298],{"style":139},[120,883,301],{"style":155},[120,885,304],{"style":219},[120,887,298],{"style":139},[120,889,890],{"style":155},"\"src\u002Fmodels\u002FpetStore.ts\"",[120,892,312],{"style":126},[120,894,895,897,899,901,903,905,907],{"class":122,"style":123},[120,896,133],{"style":236},[120,898,288],{"style":126},[120,900,321],{"style":291},[120,902,324],{"style":219},[120,904,298],{"style":139},[120,906,329],{"style":155},[120,908,312],{"style":126},[120,910,911,913,915,918],{"class":122,"style":123},[120,912,147],{"style":236},[120,914,127],{"style":126},[120,916,917],{"style":155},"`{ id: number; name: string }`",[120,919,178],{"style":126},[120,921,922,924,926,928],{"class":122,"style":123},[120,923,133],{"style":236},[120,925,350],{"style":126},[120,927,231],{"style":291},[120,929,312],{"style":126},[120,931,932,934,936],{"class":122,"style":123},[120,933,350],{"style":126},[120,935,220],{"style":291},[120,937,312],{"style":126},[704,939,940],{"id":13},[13,941,474],{},[10,943,944,945,947,948,951,952,81],{},"A printed declaration in the enclosing ",[13,946,220],{},", such as a schema from a printer or a class built as text. It works for any language. For a declaration written in JSX, or a TypeScript type, put a ",[18,949,950],{"href":511},"JavaScript component"," directly in the ",[13,953,220],{},[435,955,956,966],{},[438,957,958],{},[441,959,960,962,964],{},[444,961,736],{},[444,963,231],{},[444,965,741],{},[451,967,968,982,999,1013,1039],{},[441,969,970,975,979],{},[456,971,972],{},[13,973,974],{},"name",[456,976,977],{},[13,978,771],{},[456,980,981],{},"The declared name, for barrels and deduplication",[441,983,984,989,994],{},[456,985,986],{},[13,987,988],{},"export?",[456,990,991],{},[13,992,993],{},"boolean",[456,995,996,997,81],{},"Lists the declaration in barrels. The text still needs its own ",[13,998,655],{},[441,1000,1001,1006,1010],{},[456,1002,1003],{},[13,1004,1005],{},"default?",[456,1007,1008],{},[13,1009,993],{},[456,1011,1012],{},"Marks the declaration as the default export, which barrels skip",[441,1014,1015,1020,1025],{},[456,1016,1017],{},[13,1018,1019],{},"space?",[456,1021,1022],{},[13,1023,1024],{},"'type' | 'value'",[456,1026,1027,1028,1031,1032,1035,1036,81],{},"Whether the declaration is a type or a value. Defaults to ",[13,1029,1030],{},"'value'",". Imports and barrels of a ",[13,1033,1034],{},"'type'"," print ",[13,1037,1038],{},"type",[441,1040,1041,1045,1049],{},[456,1042,1043],{},[13,1044,858],{},[456,1046,1047],{},[13,1048,863],{},[456,1050,1051],{},"The printed declaration",[111,1053,1055],{"language":203,"code":1054,"class":115},"\u003CFile baseName=\"pet.ts\" path=\"src\u002Fgen\u002Fpet.ts\">\n \u003CCode name=\"petSchema\" export>\n {printer.print(node)}\n \u003C\u002FCode>\n\u003C\u002FFile>",[13,1056,1057,128,1079,128,1099,128,1121,128,1131],{"class":208},[120,1058,1059,1061,1063,1065,1067,1070,1072,1074,1077],{"class":122,"style":123},[120,1060,288],{"style":126},[120,1062,292],{"style":291},[120,1064,295],{"style":219},[120,1066,298],{"style":139},[120,1068,1069],{"style":155},"\"pet.ts\" ",[120,1071,304],{"style":219},[120,1073,298],{"style":139},[120,1075,1076],{"style":155},"\"src\u002Fgen\u002Fpet.ts\"",[120,1078,312],{"style":126},[120,1080,1081,1083,1085,1088,1090,1092,1095,1097],{"class":122,"style":123},[120,1082,133],{"style":236},[120,1084,288],{"style":126},[120,1086,1087],{"style":291},"Code ",[120,1089,974],{"style":219},[120,1091,298],{"style":139},[120,1093,1094],{"style":155},"\"petSchema\" ",[120,1096,655],{"style":219},[120,1098,312],{"style":126},[120,1100,1101,1103,1105,1108,1110,1113,1115,1118],{"class":122,"style":123},[120,1102,147],{"style":236},[120,1104,127],{"style":126},[120,1106,1107],{"style":236},"printer",[120,1109,81],{"style":139},[120,1111,1112],{"style":219},"print",[120,1114,281],{"style":126},[120,1116,1117],{"style":236},"node",[120,1119,1120],{"style":126},")}",[120,1122,1123,1125,1127,1129],{"class":122,"style":123},[120,1124,133],{"style":236},[120,1126,350],{"style":126},[120,1128,474],{"style":291},[120,1130,312],{"style":126},[120,1132,1133,1135,1137],{"class":122,"style":123},[120,1134,350],{"style":126},[120,1136,220],{"style":291},[120,1138,312],{"style":126},[704,1140,1142],{"id":1141},"raw",[13,1143,480],{},[10,1145,1146,1147,1149,1150,1153],{},"Text in the enclosing ",[13,1148,220],{}," that declares nothing, such as a statement like ",[13,1151,1152],{},"faker.seed(1)",", JSON, or markdown. Barrels leave it out.",[435,1155,1156,1166],{},[438,1157,1158],{},[441,1159,1160,1162,1164],{},[444,1161,736],{},[444,1163,231],{},[444,1165,741],{},[451,1167,1168,1182],{},[441,1169,1170,1175,1179],{},[456,1171,1172],{},[13,1173,1174],{},"name?",[456,1176,1177],{},[13,1178,771],{},[456,1180,1181],{},"Keys deduplication, so a block several templates add to one file is written once",[441,1183,1184,1188,1192],{},[456,1185,1186],{},[13,1187,858],{},[456,1189,1190],{},[13,1191,863],{},[456,1193,1194],{},"The text, written as is",[111,1196,1198],{"language":203,"code":1197,"class":115},"\u003CFile baseName=\"pet.ts\" path=\"src\u002Fgen\u002Fpet.ts\">\n \u003CFile.Import names={[{ name: 'faker', space: 'value' }]} path=\"@faker-js\u002Ffaker\" \u002F>\n \u003CRaw name=\"faker-seed\">{'faker.seed(1)'}\u003C\u002FRaw>\n\u003C\u002FFile>",[13,1199,1200,128,1220,128,1267,128,1298],{"class":208},[120,1201,1202,1204,1206,1208,1210,1212,1214,1216,1218],{"class":122,"style":123},[120,1203,288],{"style":126},[120,1205,292],{"style":291},[120,1207,295],{"style":219},[120,1209,298],{"style":139},[120,1211,1069],{"style":155},[120,1213,304],{"style":219},[120,1215,298],{"style":139},[120,1217,1076],{"style":155},[120,1219,312],{"style":126},[120,1221,1222,1224,1226,1229,1232,1234,1237,1239,1241,1244,1246,1249,1251,1254,1257,1259,1261,1264],{"class":122,"style":123},[120,1223,133],{"style":236},[120,1225,288],{"style":126},[120,1227,1228],{"style":291},"File.Import ",[120,1230,1231],{"style":219},"names",[120,1233,298],{"style":139},[120,1235,1236],{"style":126},"{[{ ",[120,1238,974],{"style":126},[120,1240,140],{"style":139},[120,1242,1243],{"style":155},"'faker'",[120,1245,223],{"style":139},[120,1247,1248],{"style":126},"space",[120,1250,140],{"style":139},[120,1252,1253],{"style":155},"'value' ",[120,1255,1256],{"style":126},"}]} ",[120,1258,304],{"style":219},[120,1260,298],{"style":139},[120,1262,1263],{"style":155},"\"@faker-js\u002Ffaker\" ",[120,1265,1266],{"style":126},"\u002F>",[120,1268,1269,1271,1273,1276,1278,1280,1283,1285,1287,1290,1292,1294,1296],{"class":122,"style":123},[120,1270,133],{"style":236},[120,1272,288],{"style":126},[120,1274,1275],{"style":291},"Raw ",[120,1277,974],{"style":219},[120,1279,298],{"style":139},[120,1281,1282],{"style":155},"\"faker-seed\"",[120,1284,312],{"style":126},[120,1286,127],{"style":126},[120,1288,1289],{"style":155},"'faker.seed(1)'",[120,1291,178],{"style":126},[120,1293,350],{"style":126},[120,1295,480],{"style":291},[120,1297,312],{"style":126},[120,1299,1300,1302,1304],{"class":122,"style":123},[120,1301,350],{"style":126},[120,1303,220],{"style":291},[120,1305,312],{"style":126},[704,1307,1309],{"id":1308},"origin",[13,1310,486],{},[10,1312,1313,1314,1316],{},"Records where the sources inside it come from in the input, so tools can link generated code back to it. openapi-import uses this for go to definition. It works for every source block in a ",[13,1315,220],{},", in any language.",[10,1318,1319,1320,1322],{},"You only need it when one template writes code for several parts of the input. Without it, a source gets the location of the node being generated. An inner ",[13,1321,486],{}," wins over an outer one.",[435,1324,1325,1335],{},[438,1326,1327],{},[441,1328,1329,1331,1333],{},[444,1330,736],{},[444,1332,231],{},[444,1334,741],{},[451,1336,1337,1354],{},[441,1338,1339,1344,1348],{},[456,1340,1341],{},[13,1342,1343],{},"pointer?",[456,1345,1346],{},[13,1347,771],{},[456,1349,1350,1351],{},"The input location, in the form the adapter reads, such as ",[13,1352,1353],{},"#\u002Fpaths\u002F~1pets\u002Fget\u002Fresponses\u002F200",[441,1355,1356,1360,1364],{},[456,1357,1358],{},[13,1359,858],{},[456,1361,1362],{},[13,1363,863],{},[456,1365,1366],{},"The sources it applies to",[111,1368,1370],{"language":203,"code":1369,"class":115},"\u003CFile baseName=\"getPets.ts\" path=\"src\u002Fgen\u002FgetPets.ts\">\n \u003CType export name=\"GetPetsResponses\">\n {printer.print(responses)}\n \u003C\u002FType>\n \u003COrigin pointer={response.pointer}>\n \u003CType export name=\"GetPetsStatus200\">\n {printer.print(response.schema)}\n \u003C\u002FType>\n \u003C\u002FOrigin>\n\u003C\u002FFile>",[13,1371,1372,128,1394,128,1411,128,1430,128,1440,128,1467,128,1484,128,1507,128,1517,128,1527],{"class":208},[120,1373,1374,1376,1378,1380,1382,1385,1387,1389,1392],{"class":122,"style":123},[120,1375,288],{"style":126},[120,1377,292],{"style":291},[120,1379,295],{"style":219},[120,1381,298],{"style":139},[120,1383,1384],{"style":155},"\"getPets.ts\" ",[120,1386,304],{"style":219},[120,1388,298],{"style":139},[120,1390,1391],{"style":155},"\"src\u002Fgen\u002FgetPets.ts\"",[120,1393,312],{"style":126},[120,1395,1396,1398,1400,1402,1404,1406,1409],{"class":122,"style":123},[120,1397,133],{"style":236},[120,1399,288],{"style":126},[120,1401,321],{"style":291},[120,1403,324],{"style":219},[120,1405,298],{"style":139},[120,1407,1408],{"style":155},"\"GetPetsResponses\"",[120,1410,312],{"style":126},[120,1412,1413,1415,1417,1419,1421,1423,1425,1428],{"class":122,"style":123},[120,1414,147],{"style":236},[120,1416,127],{"style":126},[120,1418,1107],{"style":236},[120,1420,81],{"style":139},[120,1422,1112],{"style":219},[120,1424,281],{"style":126},[120,1426,1427],{"style":236},"responses",[120,1429,1120],{"style":126},[120,1431,1432,1434,1436,1438],{"class":122,"style":123},[120,1433,133],{"style":236},[120,1435,350],{"style":126},[120,1437,231],{"style":291},[120,1439,312],{"style":126},[120,1441,1442,1444,1446,1449,1452,1454,1456,1459,1461,1463,1465],{"class":122,"style":123},[120,1443,133],{"style":236},[120,1445,288],{"style":126},[120,1447,1448],{"style":291},"Origin ",[120,1450,1451],{"style":219},"pointer",[120,1453,298],{"style":139},[120,1455,127],{"style":126},[120,1457,1458],{"style":236},"response",[120,1460,81],{"style":139},[120,1462,1451],{"style":126},[120,1464,178],{"style":126},[120,1466,312],{"style":126},[120,1468,1469,1471,1473,1475,1477,1479,1482],{"class":122,"style":123},[120,1470,147],{"style":236},[120,1472,288],{"style":126},[120,1474,321],{"style":291},[120,1476,324],{"style":219},[120,1478,298],{"style":139},[120,1480,1481],{"style":155},"\"GetPetsStatus200\"",[120,1483,312],{"style":126},[120,1485,1486,1488,1490,1492,1494,1496,1498,1500,1502,1505],{"class":122,"style":123},[120,1487,336],{"style":236},[120,1489,127],{"style":126},[120,1491,1107],{"style":236},[120,1493,81],{"style":139},[120,1495,1112],{"style":219},[120,1497,281],{"style":126},[120,1499,1458],{"style":236},[120,1501,81],{"style":139},[120,1503,1504],{"style":126},"schema",[120,1506,1120],{"style":126},[120,1508,1509,1511,1513,1515],{"class":122,"style":123},[120,1510,147],{"style":236},[120,1512,350],{"style":126},[120,1514,231],{"style":291},[120,1516,312],{"style":126},[120,1518,1519,1521,1523,1525],{"class":122,"style":123},[120,1520,133],{"style":236},[120,1522,350],{"style":126},[120,1524,486],{"style":291},[120,1526,312],{"style":126},[120,1528,1529,1531,1533],{"class":122,"style":123},[120,1530,350],{"style":126},[120,1532,220],{"style":291},[120,1534,312],{"style":126},[704,1536,1538],{"id":1537},"file-import",[13,1539,492],{},[10,1541,1542,1543,81],{},"An import at the top of the enclosing ",[13,1544,220],{},[435,1546,1547,1557],{},[438,1548,1549],{},[441,1550,1551,1553,1555],{},[444,1552,736],{},[444,1554,231],{},[444,1556,741],{},[451,1558,1559,1588,1601],{},[441,1560,1561,1565,1570],{},[456,1562,1563],{},[13,1564,1231],{},[456,1566,1567],{},[13,1568,1569],{},"Array\u003C{ name: string; alias?: string; space?: 'type' | 'value' }>",[456,1571,1572,1573,1575,1576,1579,1580,1583,1584,1587],{},"The names to import. ",[13,1574,974],{}," is the name in the other module, ",[13,1577,1578],{},"'default'"," for its default export or ",[13,1581,1582],{},"'*'"," for the whole module. ",[13,1585,1586],{},"alias"," is the local name.",[441,1589,1590,1594,1598],{},[456,1591,1592],{},[13,1593,304],{},[456,1595,1596],{},[13,1597,771],{},[456,1599,1600],{},"The module to import from",[441,1602,1603,1608,1612],{},[456,1604,1605],{},[13,1606,1607],{},"root?",[456,1609,1610],{},[13,1611,801],{},[456,1613,1614],{},"The file path the import is relative to",[10,1616,1617,1618,1620,1621,1623,1624,1626,1627,1629],{},"Each name prints as ",[13,1619,1038],{}," when its ",[13,1622,1248],{}," is ",[13,1625,1034],{},". A name without ",[13,1628,1248],{}," is a value.",[111,1631,1633],{"language":203,"code":1632,"class":115},"\u003CFile.Import names={[{ name: 'useState', space: 'value' }]} path=\"react\" \u002F>\n\u002F\u002F import { useState } from 'react'\n\n\u003CFile.Import names={[{ name: '*', alias: 'z', space: 'value' }]} path=\"zod\" \u002F>\n\u002F\u002F import * as z from 'zod'\n\n\u003CFile.Import names={[{ name: 'default', alias: 'useSWR', space: 'value' }]} path=\"swr\" \u002F>\n\u002F\u002F import useSWR from 'swr'\n\n\u003CFile.Import names={[{ name: 'Pet', space: 'type' }]} root={target.path} path={types.path} \u002F>\n\u002F\u002F import type { Pet } from '.\u002Fmodels\u002FPet'",[13,1634,1635,128,1673,128,1679,128,1681,128,1732,128,1737,128,1739,128,1785,128,1790,128,1792,128,1859],{"class":208},[120,1636,1637,1639,1641,1643,1645,1647,1649,1651,1654,1656,1658,1660,1662,1664,1666,1668,1671],{"class":122,"style":123},[120,1638,288],{"style":126},[120,1640,1228],{"style":291},[120,1642,1231],{"style":219},[120,1644,298],{"style":139},[120,1646,1236],{"style":126},[120,1648,974],{"style":126},[120,1650,140],{"style":139},[120,1652,1653],{"style":155},"'useState'",[120,1655,223],{"style":139},[120,1657,1248],{"style":126},[120,1659,140],{"style":139},[120,1661,1253],{"style":155},[120,1663,1256],{"style":126},[120,1665,304],{"style":219},[120,1667,298],{"style":139},[120,1669,1670],{"style":155},"\"react\" ",[120,1672,1266],{"style":126},[120,1674,1675],{"class":122,"style":123},[120,1676,1678],{"style":1677},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F import { useState } from 'react'",[120,1680],{"class":122,"style":123},[120,1682,1683,1685,1687,1689,1692,1694,1696,1698,1700,1702,1704,1706,1708,1710,1713,1715,1717,1719,1721,1723,1725,1727,1730],{"class":122,"style":123},[120,1684,288],{"style":139},[120,1686,220],{"style":219},[120,1688,81],{"style":139},[120,1690,1691],{"style":126},"Import ",[120,1693,1231],{"style":236},[120,1695,298],{"style":139},[120,1697,1236],{"style":126},[120,1699,974],{"style":126},[120,1701,140],{"style":139},[120,1703,1582],{"style":155},[120,1705,223],{"style":139},[120,1707,1586],{"style":126},[120,1709,140],{"style":139},[120,1711,1712],{"style":155},"'z'",[120,1714,223],{"style":139},[120,1716,1248],{"style":126},[120,1718,140],{"style":139},[120,1720,1253],{"style":155},[120,1722,1256],{"style":126},[120,1724,304],{"style":236},[120,1726,298],{"style":139},[120,1728,1729],{"style":155},"\"zod\" ",[120,1731,1266],{"style":139},[120,1733,1734],{"class":122,"style":123},[120,1735,1736],{"style":1677},"\u002F\u002F import * as z from 'zod'",[120,1738],{"class":122,"style":123},[120,1740,1741,1743,1745,1747,1749,1751,1753,1755,1757,1759,1761,1763,1766,1768,1770,1772,1774,1776,1778,1780,1783],{"class":122,"style":123},[120,1742,288],{"style":126},[120,1744,1228],{"style":291},[120,1746,1231],{"style":219},[120,1748,298],{"style":139},[120,1750,1236],{"style":126},[120,1752,974],{"style":126},[120,1754,140],{"style":139},[120,1756,1578],{"style":155},[120,1758,223],{"style":139},[120,1760,1586],{"style":126},[120,1762,140],{"style":139},[120,1764,1765],{"style":155},"'useSWR'",[120,1767,223],{"style":139},[120,1769,1248],{"style":126},[120,1771,140],{"style":139},[120,1773,1253],{"style":155},[120,1775,1256],{"style":126},[120,1777,304],{"style":219},[120,1779,298],{"style":139},[120,1781,1782],{"style":155},"\"swr\" ",[120,1784,1266],{"style":126},[120,1786,1787],{"class":122,"style":123},[120,1788,1789],{"style":1677},"\u002F\u002F import useSWR from 'swr'",[120,1791],{"class":122,"style":123},[120,1793,1794,1796,1798,1800,1802,1804,1806,1808,1810,1812,1815,1817,1819,1821,1824,1826,1829,1831,1833,1836,1838,1840,1842,1844,1846,1848,1851,1853,1855,1857],{"class":122,"style":123},[120,1795,288],{"style":139},[120,1797,220],{"style":219},[120,1799,81],{"style":139},[120,1801,1691],{"style":126},[120,1803,1231],{"style":236},[120,1805,298],{"style":139},[120,1807,1236],{"style":126},[120,1809,974],{"style":126},[120,1811,140],{"style":139},[120,1813,1814],{"style":155},"'Pet'",[120,1816,223],{"style":139},[120,1818,1248],{"style":126},[120,1820,140],{"style":139},[120,1822,1823],{"style":155},"'type' ",[120,1825,1256],{"style":126},[120,1827,1828],{"style":236},"root",[120,1830,298],{"style":139},[120,1832,127],{"style":126},[120,1834,1835],{"style":236},"target",[120,1837,81],{"style":139},[120,1839,304],{"style":126},[120,1841,240],{"style":126},[120,1843,304],{"style":236},[120,1845,298],{"style":139},[120,1847,127],{"style":126},[120,1849,1850],{"style":236},"types",[120,1852,81],{"style":139},[120,1854,304],{"style":126},[120,1856,240],{"style":126},[120,1858,1266],{"style":139},[120,1860,1861],{"class":122,"style":123},[120,1862,1863],{"style":1677},"\u002F\u002F import type { Pet } from '.\u002Fmodels\u002FPet'",[704,1865,1867],{"id":1866},"file-export",[13,1868,498],{},[10,1870,1871,1872,81],{},"An export at the top of the enclosing ",[13,1873,220],{},[435,1875,1876,1886],{},[438,1877,1878],{},[441,1879,1880,1882,1884],{},[444,1881,736],{},[444,1883,231],{},[444,1885,741],{},[451,1887,1888,1908],{},[441,1889,1890,1894,1898],{},[456,1891,1892],{},[13,1893,1231],{},[456,1895,1896],{},[13,1897,1569],{},[456,1899,1900,1901,1904,1905,1907],{},"The names to export. ",[13,1902,1903],{},"{ name: '*' }"," exports everything, and an ",[13,1906,1586],{}," on it exports the module under one name.",[441,1909,1910,1914,1918],{},[456,1911,1912],{},[13,1913,304],{},[456,1915,1916],{},[13,1917,771],{},[456,1919,1920],{},"The module to export from",[10,1922,1923,1924,1629],{},"A name without ",[13,1925,1248],{},[111,1927,1929],{"language":203,"code":1928,"class":115},"\u003CFile.Export names={[{ name: 'Pet', space: 'type' }]} path=\".\u002Fmodels\u002FpetStore\" \u002F>\n\u002F\u002F export type { Pet } from '.\u002Fmodels\u002FpetStore'\n\n\u003CFile.Export names={[{ name: '*', space: 'value' }]} path=\".\u002Fmodels\u002FpetStore\" \u002F>\n\u002F\u002F export * from '.\u002Fmodels\u002FpetStore'\n\n\u003CFile.Export names={[{ name: '*', alias: 'models', space: 'value' }]} path=\".\u002Fmodels\" \u002F>\n\u002F\u002F export * as models from '.\u002Fmodels'",[13,1930,1931,128,1969,128,1974,128,1976,128,2017,128,2022,128,2024,128,2070],{"class":208},[120,1932,1933,1935,1938,1940,1942,1944,1946,1948,1950,1952,1954,1956,1958,1960,1962,1964,1967],{"class":122,"style":123},[120,1934,288],{"style":126},[120,1936,1937],{"style":291},"File.Export ",[120,1939,1231],{"style":219},[120,1941,298],{"style":139},[120,1943,1236],{"style":126},[120,1945,974],{"style":126},[120,1947,140],{"style":139},[120,1949,1814],{"style":155},[120,1951,223],{"style":139},[120,1953,1248],{"style":126},[120,1955,140],{"style":139},[120,1957,1823],{"style":155},[120,1959,1256],{"style":126},[120,1961,304],{"style":219},[120,1963,298],{"style":139},[120,1965,1966],{"style":155},"\".\u002Fmodels\u002FpetStore\" ",[120,1968,1266],{"style":126},[120,1970,1971],{"class":122,"style":123},[120,1972,1973],{"style":1677},"\u002F\u002F export type { Pet } from '.\u002Fmodels\u002FpetStore'",[120,1975],{"class":122,"style":123},[120,1977,1978,1980,1982,1984,1987,1989,1991,1993,1995,1997,1999,2001,2003,2005,2007,2009,2011,2013,2015],{"class":122,"style":123},[120,1979,288],{"style":139},[120,1981,220],{"style":219},[120,1983,81],{"style":139},[120,1985,1986],{"style":126},"Export ",[120,1988,1231],{"style":236},[120,1990,298],{"style":139},[120,1992,1236],{"style":126},[120,1994,974],{"style":126},[120,1996,140],{"style":139},[120,1998,1582],{"style":155},[120,2000,223],{"style":139},[120,2002,1248],{"style":126},[120,2004,140],{"style":139},[120,2006,1253],{"style":155},[120,2008,1256],{"style":126},[120,2010,304],{"style":236},[120,2012,298],{"style":139},[120,2014,1966],{"style":155},[120,2016,1266],{"style":139},[120,2018,2019],{"class":122,"style":123},[120,2020,2021],{"style":1677},"\u002F\u002F export * from '.\u002Fmodels\u002FpetStore'",[120,2023],{"class":122,"style":123},[120,2025,2026,2028,2030,2032,2034,2036,2038,2040,2042,2044,2046,2048,2051,2053,2055,2057,2059,2061,2063,2065,2068],{"class":122,"style":123},[120,2027,288],{"style":126},[120,2029,1937],{"style":291},[120,2031,1231],{"style":219},[120,2033,298],{"style":139},[120,2035,1236],{"style":126},[120,2037,974],{"style":126},[120,2039,140],{"style":139},[120,2041,1582],{"style":155},[120,2043,223],{"style":139},[120,2045,1586],{"style":126},[120,2047,140],{"style":139},[120,2049,2050],{"style":155},"'models'",[120,2052,223],{"style":139},[120,2054,1248],{"style":126},[120,2056,140],{"style":139},[120,2058,1253],{"style":155},[120,2060,1256],{"style":126},[120,2062,304],{"style":219},[120,2064,298],{"style":139},[120,2066,2067],{"style":155},"\".\u002Fmodels\" ",[120,2069,1266],{"style":126},[120,2071,2072],{"class":122,"style":123},[120,2073,2074],{"style":1677},"\u002F\u002F export * as models from '.\u002Fmodels'",[704,2076,2077],{"id":1504},[13,2078,504],{},[10,2080,2081,2082,2084,2085,2088],{},"Prints ",[13,2083,1117],{},", adds the printer's imports, and calls ",[13,2086,2087],{},"children"," with the code. It renders nothing when the printer returns nothing.",[435,2090,2091,2101],{},[438,2092,2093],{},[441,2094,2095,2097,2099],{},[444,2096,736],{},[444,2098,231],{},[444,2100,741],{},[451,2102,2103,2117,2134],{},[441,2104,2105,2109,2114],{},[456,2106,2107],{},[13,2108,1117],{},[456,2110,2111],{},[13,2112,2113],{},"SchemaNode",[456,2115,2116],{},"The schema to print",[441,2118,2119,2123,2128],{},[456,2120,2121],{},[13,2122,1107],{},[456,2124,2125],{},[13,2126,2127],{},"Printer",[456,2129,2130,2131],{},"The printer, such as one built with ",[13,2132,2133],{},"createPrinter",[441,2135,2136,2140,2145],{},[456,2137,2138],{},[13,2139,2087],{},[456,2141,2142],{},[13,2143,2144],{},"(code: string) => KubbReactNode",[456,2146,2147],{},"Renders the declarations for the code",[111,2149,2151],{"language":203,"code":2150,"class":115},"\u003CSchema node={node} printer={printer}>\n {(code) => (\n \u003CConst export name=\"petSchema\">\n {code}\n \u003C\u002FConst>\n )}\n\u003C\u002FSchema>",[13,2152,2153,128,2182,128,2199,128,2217,128,2227,128,2237,128,2243],{"class":208},[120,2154,2155,2157,2160,2162,2164,2166,2168,2170,2172,2174,2176,2178,2180],{"class":122,"style":123},[120,2156,288],{"style":126},[120,2158,2159],{"style":291},"Schema ",[120,2161,1117],{"style":219},[120,2163,298],{"style":139},[120,2165,127],{"style":126},[120,2167,1117],{"style":236},[120,2169,240],{"style":126},[120,2171,1107],{"style":219},[120,2173,298],{"style":139},[120,2175,127],{"style":126},[120,2177,1107],{"style":236},[120,2179,178],{"style":126},[120,2181,312],{"style":126},[120,2183,2184,2186,2189,2191,2194,2197],{"class":122,"style":123},[120,2185,133],{"style":236},[120,2187,2188],{"style":126},"{(",[120,2190,13],{"style":236},[120,2192,2193],{"style":126},") ",[120,2195,2196],{"style":139},"=> ",[120,2198,281],{"style":126},[120,2200,2201,2203,2205,2208,2210,2212,2215],{"class":122,"style":123},[120,2202,147],{"style":126},[120,2204,288],{"style":126},[120,2206,2207],{"style":291},"Const ",[120,2209,324],{"style":219},[120,2211,298],{"style":139},[120,2213,2214],{"style":155},"\"petSchema\"",[120,2216,312],{"style":126},[120,2218,2219,2221,2223,2225],{"class":122,"style":123},[120,2220,336],{"style":236},[120,2222,127],{"style":126},[120,2224,13],{"style":236},[120,2226,178],{"style":126},[120,2228,2229,2231,2233,2235],{"class":122,"style":123},[120,2230,147],{"style":236},[120,2232,350],{"style":126},[120,2234,520],{"style":291},[120,2236,312],{"style":126},[120,2238,2239,2241],{"class":122,"style":123},[120,2240,133],{"style":126},[120,2242,1120],{"style":126},[120,2244,2245,2247,2249],{"class":122,"style":123},[120,2246,350],{"style":126},[120,2248,504],{"style":291},[120,2250,312],{"style":126},[606,2252,512],{"id":2253},"javascript",[10,2255,2256,2257,2260,2261,2263,2264,2267],{},"The JavaScript components emit TypeScript. Each takes ",[13,2258,2259],{},"export?: boolean | null"," to add ",[13,2262,655],{},", and ",[13,2265,2266],{},"JSDoc?: { comments?: Array\u003Cstring | undefined> } | null"," for a JSDoc block.",[10,2269,2270,2271,2273,2274,2276,2277,2279,2280,2283,2284,2290],{},"A component directly in a ",[13,2272,220],{}," is its own source block, named after ",[13,2275,974],{},". ",[13,2278,655],{}," puts it in barrels, unless it is also ",[13,2281,2282],{},"default",". In an ",[18,2285,2286,2289],{"href":850},[13,2287,2288],{},"inline"," file",", importing files use its body in place of its name.",[111,2292,2294],{"language":203,"code":2293,"class":115},"\u003CFile baseName=\"pet.ts\" path=\"src\u002Fzod\u002Fpet.ts\">\n \u003CConst export name=\"petSchema\">\n {'z.object({ id: z.number() })'}\n \u003C\u002FConst>\n \u003CType export name=\"Pet\">\n {'z.infer\u003Ctypeof petSchema>'}\n \u003C\u002FType>\n\u003C\u002FFile>",[13,2295,2296,128,2317,128,2333,128,2344,128,2354,128,2370,128,2381,128,2391],{"class":208},[120,2297,2298,2300,2302,2304,2306,2308,2310,2312,2315],{"class":122,"style":123},[120,2299,288],{"style":126},[120,2301,292],{"style":291},[120,2303,295],{"style":219},[120,2305,298],{"style":139},[120,2307,1069],{"style":155},[120,2309,304],{"style":219},[120,2311,298],{"style":139},[120,2313,2314],{"style":155},"\"src\u002Fzod\u002Fpet.ts\"",[120,2316,312],{"style":126},[120,2318,2319,2321,2323,2325,2327,2329,2331],{"class":122,"style":123},[120,2320,133],{"style":236},[120,2322,288],{"style":126},[120,2324,2207],{"style":291},[120,2326,324],{"style":219},[120,2328,298],{"style":139},[120,2330,2214],{"style":155},[120,2332,312],{"style":126},[120,2334,2335,2337,2339,2342],{"class":122,"style":123},[120,2336,147],{"style":236},[120,2338,127],{"style":126},[120,2340,2341],{"style":155},"'z.object({ id: z.number() })'",[120,2343,178],{"style":126},[120,2345,2346,2348,2350,2352],{"class":122,"style":123},[120,2347,133],{"style":236},[120,2349,350],{"style":126},[120,2351,520],{"style":291},[120,2353,312],{"style":126},[120,2355,2356,2358,2360,2362,2364,2366,2368],{"class":122,"style":123},[120,2357,133],{"style":236},[120,2359,288],{"style":126},[120,2361,321],{"style":291},[120,2363,324],{"style":219},[120,2365,298],{"style":139},[120,2367,329],{"style":155},[120,2369,312],{"style":126},[120,2371,2372,2374,2376,2379],{"class":122,"style":123},[120,2373,147],{"style":236},[120,2375,127],{"style":126},[120,2377,2378],{"style":155},"'z.infer\u003Ctypeof petSchema>'",[120,2380,178],{"style":126},[120,2382,2383,2385,2387,2389],{"class":122,"style":123},[120,2384,133],{"style":236},[120,2386,350],{"style":126},[120,2388,231],{"style":291},[120,2390,312],{"style":126},[120,2392,2393,2395,2397],{"class":122,"style":123},[120,2394,350],{"style":126},[120,2396,220],{"style":291},[120,2398,312],{"style":126},[704,2400,2402],{"id":2401},"const",[13,2403,520],{},[10,2405,694,2406,2408],{},[13,2407,2401],{}," declaration, with the children as the initializer.",[435,2410,2411,2421],{},[438,2412,2413],{},[441,2414,2415,2417,2419],{},[444,2416,736],{},[444,2418,231],{},[444,2420,741],{},[451,2422,2423,2436,2453],{},[441,2424,2425,2429,2433],{},[456,2426,2427],{},[13,2428,974],{},[456,2430,2431],{},[13,2432,771],{},[456,2434,2435],{},"The name",[441,2437,2438,2443,2447],{},[456,2439,2440],{},[13,2441,2442],{},"type?",[456,2444,2445],{},[13,2446,801],{},[456,2448,2449,2450],{},"The annotation after ",[13,2451,2452],{},"const name:",[441,2454,2455,2460,2464],{},[456,2456,2457],{},[13,2458,2459],{},"asConst?",[456,2461,2462],{},[13,2463,844],{},[456,2465,2466,2467,2470],{},"Adds ",[13,2468,2469],{},"as const"," after the initializer",[111,2472,2474],{"language":203,"code":2473,"class":115},"\u003CConst export name=\"petSchema\" type=\"z.ZodType\u003CPet>\">\n {`z.object({ id: z.number() })`}\n\u003C\u002FConst>\n\u002F\u002F export const petSchema: z.ZodType\u003CPet> = z.object({ id: z.number() })",[13,2475,2476,128,2497,128,2508,128,2516],{"class":208},[120,2477,2478,2480,2482,2484,2486,2488,2490,2492,2495],{"class":122,"style":123},[120,2479,288],{"style":126},[120,2481,2207],{"style":291},[120,2483,324],{"style":219},[120,2485,298],{"style":139},[120,2487,1094],{"style":155},[120,2489,1038],{"style":219},[120,2491,298],{"style":139},[120,2493,2494],{"style":155},"\"z.ZodType\u003CPet>\"",[120,2496,312],{"style":126},[120,2498,2499,2501,2503,2506],{"class":122,"style":123},[120,2500,133],{"style":236},[120,2502,127],{"style":126},[120,2504,2505],{"style":155},"`z.object({ id: z.number() })`",[120,2507,178],{"style":126},[120,2509,2510,2512,2514],{"class":122,"style":123},[120,2511,350],{"style":126},[120,2513,520],{"style":291},[120,2515,312],{"style":126},[120,2517,2518],{"class":122,"style":123},[120,2519,2520],{"style":1677},"\u002F\u002F export const petSchema: z.ZodType\u003CPet> = z.object({ id: z.number() })",[704,2522,2524],{"id":2523},"function",[13,2525,226],{},[10,2527,2528],{},"A function declaration, with the children as the body.",[435,2530,2531,2541],{},[438,2532,2533],{},[441,2534,2535,2537,2539],{},[444,2536,736],{},[444,2538,231],{},[444,2540,741],{},[451,2542,2543,2555,2572,2595,2609,2624],{},[441,2544,2545,2549,2553],{},[456,2546,2547],{},[13,2548,974],{},[456,2550,2551],{},[13,2552,771],{},[456,2554,2435],{},[441,2556,2557,2561,2565],{},[456,2558,2559],{},[13,2560,1005],{},[456,2562,2563],{},[13,2564,844],{},[456,2566,2466,2567,2569,2570],{},[13,2568,2282],{}," after ",[13,2571,655],{},[441,2573,2574,2579,2583],{},[456,2575,2576],{},[13,2577,2578],{},"async?",[456,2580,2581],{},[13,2582,844],{},[456,2584,2466,2585,2587,2588,2591,2592],{},[13,2586,73],{}," and wraps ",[13,2589,2590],{},"returnType"," in ",[13,2593,2594],{},"Promise\u003C…>",[441,2596,2597,2602,2606],{},[456,2598,2599],{},[13,2600,2601],{},"params?",[456,2603,2604],{},[13,2605,801],{},[456,2607,2608],{},"The parameter list",[441,2610,2611,2616,2621],{},[456,2612,2613],{},[13,2614,2615],{},"generics?",[456,2617,2618],{},[13,2619,2620],{},"string | Array\u003Cstring> | null",[456,2622,2623],{},"The type parameters. An array joins with commas.",[441,2625,2626,2631,2635],{},[456,2627,2628],{},[13,2629,2630],{},"returnType?",[456,2632,2633],{},[13,2634,801],{},[456,2636,2637,2638],{},"The return type after ",[13,2639,2640],{},":",[111,2642,2644],{"language":203,"code":2643,"class":115},"\u003CFunction export async name=\"getPet\" generics={['TData = Pet']} params=\"petId: string\" returnType=\"TData\">\n {'return client.get(\"\u002Fpets\u002F\" + petId)'}\n\u003C\u002FFunction>\n\u002F\u002F export async function getPet\u003CTData = Pet>(petId: string): Promise\u003CTData> { … }",[13,2645,2646,128,2690,128,2701,128,2709],{"class":208},[120,2647,2648,2650,2652,2655,2657,2659,2662,2664,2667,2670,2673,2676,2678,2681,2683,2685,2688],{"class":122,"style":123},[120,2649,288],{"style":126},[120,2651,363],{"style":291},[120,2653,2654],{"style":219},"export async name",[120,2656,298],{"style":139},[120,2658,370],{"style":155},[120,2660,2661],{"style":219},"generics",[120,2663,298],{"style":139},[120,2665,2666],{"style":126},"{[",[120,2668,2669],{"style":155},"'TData = Pet'",[120,2671,2672],{"style":126},"]} ",[120,2674,2675],{"style":219},"params",[120,2677,298],{"style":139},[120,2679,2680],{"style":155},"\"petId: string\" ",[120,2682,2590],{"style":219},[120,2684,298],{"style":139},[120,2686,2687],{"style":155},"\"TData\"",[120,2689,312],{"style":126},[120,2691,2692,2694,2696,2699],{"class":122,"style":123},[120,2693,133],{"style":236},[120,2695,127],{"style":126},[120,2697,2698],{"style":155},"'return client.get(\"\u002Fpets\u002F\" + petId)'",[120,2700,178],{"style":126},[120,2702,2703,2705,2707],{"class":122,"style":123},[120,2704,350],{"style":126},[120,2706,226],{"style":291},[120,2708,312],{"style":126},[120,2710,2711],{"class":122,"style":123},[120,2712,2713],{"style":1677},"\u002F\u002F export async function getPet\u003CTData = Pet>(petId: string): Promise\u003CTData> { … }",[704,2715,2717],{"id":2716},"function-arrow",[13,2718,531],{},[10,2720,2721,2722,2724,2725,2727,2728,2731],{},"An arrow function in a ",[13,2723,2401],{},". It takes every ",[13,2726,226],{}," prop, plus ",[13,2729,2730],{},"singleLine?: boolean | null"," for an expression body without braces.",[111,2733,2735],{"language":203,"code":2734,"class":115},"\u003CFunction.Arrow export name=\"double\" params=\"n: number\" returnType=\"number\" singleLine>\n {`n * 2`}\n\u003C\u002FFunction.Arrow>\n\u002F\u002F export const double = (n: number): number => n * 2",[13,2736,2737,128,2770,128,2781,128,2789],{"class":208},[120,2738,2739,2741,2744,2746,2748,2751,2753,2755,2758,2760,2762,2765,2768],{"class":122,"style":123},[120,2740,288],{"style":126},[120,2742,2743],{"style":291},"Function.Arrow ",[120,2745,324],{"style":219},[120,2747,298],{"style":139},[120,2749,2750],{"style":155},"\"double\" ",[120,2752,2675],{"style":219},[120,2754,298],{"style":139},[120,2756,2757],{"style":155},"\"n: number\" ",[120,2759,2590],{"style":219},[120,2761,298],{"style":139},[120,2763,2764],{"style":155},"\"number\" ",[120,2766,2767],{"style":219},"singleLine",[120,2769,312],{"style":126},[120,2771,2772,2774,2776,2779],{"class":122,"style":123},[120,2773,133],{"style":236},[120,2775,127],{"style":126},[120,2777,2778],{"style":155},"`n * 2`",[120,2780,178],{"style":126},[120,2782,2783,2785,2787],{"class":122,"style":123},[120,2784,350],{"style":126},[120,2786,531],{"style":291},[120,2788,312],{"style":126},[120,2790,2791],{"class":122,"style":123},[120,2792,2793],{"style":1677},"\u002F\u002F export const double = (n: number): number => n * 2",[704,2795,2796],{"id":1038},[13,2797,231],{},[10,2799,2800,2801,81],{},"A type alias or an interface, with the children as the type. Barrels re-export it with ",[13,2802,2803],{},"export type",[435,2805,2806,2816],{},[438,2807,2808],{},[441,2809,2810,2812,2814],{},[444,2811,736],{},[444,2813,231],{},[444,2815,741],{},[451,2817,2818,2831],{},[441,2819,2820,2824,2828],{},[456,2821,2822],{},[13,2823,974],{},[456,2825,2826],{},[13,2827,771],{},[456,2829,2830],{},"The alias name",[441,2832,2833,2838,2843],{},[456,2834,2835],{},[13,2836,2837],{},"syntax?",[456,2839,2840],{},[13,2841,2842],{},"'type' | 'interface'",[456,2844,2845,2848,2849,2852,2853,81],{},[13,2846,2847],{},"'interface'"," declares ",[13,2850,2851],{},"interface Name { … }",", so the children must be an object type. Defaults to ",[13,2854,1034],{},[111,2856,2858],{"language":203,"code":2857,"class":115},"\u003CType export name=\"PetId\">\n {`string | number`}\n\u003C\u002FType>\n\u002F\u002F export type PetId = string | number\n\n\u003CType export name=\"Pet\" syntax=\"interface\">\n {`{ id: number }`}\n\u003C\u002FType>\n\u002F\u002F export interface Pet { id: number }",[13,2859,2860,128,2875,128,2886,128,2894,128,2899,128,2901,128,2927,128,2938,128,2945],{"class":208},[120,2861,2862,2864,2866,2868,2870,2873],{"class":122,"style":123},[120,2863,288],{"style":126},[120,2865,321],{"style":291},[120,2867,324],{"style":219},[120,2869,298],{"style":139},[120,2871,2872],{"style":155},"\"PetId\"",[120,2874,312],{"style":126},[120,2876,2877,2879,2881,2884],{"class":122,"style":123},[120,2878,133],{"style":236},[120,2880,127],{"style":126},[120,2882,2883],{"style":155},"`string | number`",[120,2885,178],{"style":126},[120,2887,2888,2890,2892],{"class":122,"style":123},[120,2889,350],{"style":126},[120,2891,231],{"style":291},[120,2893,312],{"style":126},[120,2895,2896],{"class":122,"style":123},[120,2897,2898],{"style":1677},"\u002F\u002F export type PetId = string | number",[120,2900],{"class":122,"style":123},[120,2902,2903,2905,2907,2910,2912,2914,2917,2920,2922,2925],{"class":122,"style":123},[120,2904,288],{"style":139},[120,2906,321],{"style":219},[120,2908,2909],{"style":139},"export ",[120,2911,974],{"style":236},[120,2913,298],{"style":139},[120,2915,2916],{"style":155},"\"Pet\" ",[120,2918,2919],{"style":236},"syntax",[120,2921,298],{"style":139},[120,2923,2924],{"style":155},"\"interface\"",[120,2926,312],{"style":139},[120,2928,2929,2931,2933,2936],{"class":122,"style":123},[120,2930,133],{"style":139},[120,2932,127],{"style":126},[120,2934,2935],{"style":155},"`{ id: number }`",[120,2937,178],{"style":126},[120,2939,2940,2942],{"class":122,"style":123},[120,2941,288],{"style":139},[120,2943,2944],{"style":155},"\u002FType>",[120,2946,2947],{"class":122,"style":123},[120,2948,2949],{"style":1677},"\u002F\u002F export interface Pet { id: number }",[606,2951,544],{"id":2952},"markdown",[10,2954,2955,2956,2958,2959,598,2961,2963,2964,2967,2968,2971],{},"Each Markdown component emits its own source block, so put it directly in a ",[13,2957,220],{},", not in ",[13,2960,474],{},[13,2962,480],{},". Name the file ",[13,2965,2966],{},".md"," so ",[13,2969,2970],{},"parserMd"," prints it.",[111,2973,2976],{"language":203,"filename":2974,"code":2975,"class":115},"docs.tsx","import { Callout, File, Frontmatter, Heading, List, Paragraph, jsxRenderer } from 'kubb\u002Fjsx'\n\nconst renderer = jsxRenderer()\n\nawait renderer.render(\n \u003CFile baseName=\"pets.md\" path=\"src\u002Fdocs\u002Fpets.md\">\n \u003CFrontmatter data={{ title: 'Pets', layout: 'doc' }} \u002F>\n \u003CHeading level={2}>Pets\u003C\u002FHeading>\n \u003CParagraph>{'A pet object with an id and a name.'}\u003C\u002FParagraph>\n \u003CList items={['id: number', 'name: string']} \u002F>\n \u003CCallout type=\"tip\">Keep the generator hot with kubb generate --watch.\u003C\u002FCallout>\n \u003C\u002FFile>,\n)",[13,2977,2978,128,3016,128,3018,128,3030,128,3032,128,3044,128,3068,128,3108,128,3140,128,3163,128,3191,128,3218,128,3230],{"class":208},[120,2979,2980,2982,2984,2986,2988,2990,2992,2994,2996,2998,3000,3002,3004,3006,3008,3010,3012,3014],{"class":122,"style":123},[120,2981,213],{"style":139},[120,2983,216],{"style":126},[120,2985,552],{"style":219},[120,2987,223],{"style":139},[120,2989,220],{"style":219},[120,2991,223],{"style":139},[120,2993,558],{"style":219},[120,2995,223],{"style":139},[120,2997,564],{"style":219},[120,2999,223],{"style":139},[120,3001,570],{"style":219},[120,3003,223],{"style":139},[120,3005,576],{"style":219},[120,3007,223],{"style":139},[120,3009,237],{"style":236},[120,3011,240],{"style":126},[120,3013,243],{"style":139},[120,3015,246],{"style":155},[120,3017],{"class":122,"style":123},[120,3019,3020,3022,3024,3026,3028],{"class":122,"style":123},[120,3021,253],{"style":139},[120,3023,256],{"style":236},[120,3025,259],{"style":139},[120,3027,39],{"style":219},[120,3029,264],{"style":126},[120,3031],{"class":122,"style":123},[120,3033,3034,3036,3038,3040,3042],{"class":122,"style":123},[120,3035,271],{"style":139},[120,3037,274],{"style":236},[120,3039,81],{"style":139},[120,3041,196],{"style":219},[120,3043,281],{"style":126},[120,3045,3046,3048,3050,3052,3054,3056,3059,3061,3063,3066],{"class":122,"style":123},[120,3047,133],{"style":126},[120,3049,288],{"style":126},[120,3051,292],{"style":291},[120,3053,295],{"style":219},[120,3055,298],{"style":139},[120,3057,3058],{"style":155},"\"pets.md\" ",[120,3060,304],{"style":219},[120,3062,298],{"style":139},[120,3064,3065],{"style":155},"\"src\u002Fdocs\u002Fpets.md\"",[120,3067,312],{"style":126},[120,3069,3070,3072,3074,3077,3080,3082,3085,3088,3090,3093,3095,3098,3100,3103,3106],{"class":122,"style":123},[120,3071,147],{"style":236},[120,3073,288],{"style":126},[120,3075,3076],{"style":291},"Frontmatter ",[120,3078,3079],{"style":219},"data",[120,3081,298],{"style":139},[120,3083,3084],{"style":126},"{{ ",[120,3086,3087],{"style":126},"title",[120,3089,140],{"style":139},[120,3091,3092],{"style":155},"'Pets'",[120,3094,223],{"style":139},[120,3096,3097],{"style":126},"layout",[120,3099,140],{"style":139},[120,3101,3102],{"style":155},"'doc' ",[120,3104,3105],{"style":126},"}} ",[120,3107,1266],{"style":126},[120,3109,3110,3112,3114,3117,3120,3122,3124,3127,3129,3131,3134,3136,3138],{"class":122,"style":123},[120,3111,147],{"style":236},[120,3113,288],{"style":126},[120,3115,3116],{"style":291},"Heading ",[120,3118,3119],{"style":219},"level",[120,3121,298],{"style":139},[120,3123,127],{"style":126},[120,3125,3126],{"style":126},"2",[120,3128,178],{"style":126},[120,3130,312],{"style":126},[120,3132,3133],{"style":236},"Pets",[120,3135,350],{"style":126},[120,3137,564],{"style":291},[120,3139,312],{"style":126},[120,3141,3142,3144,3146,3148,3150,3152,3155,3157,3159,3161],{"class":122,"style":123},[120,3143,147],{"style":236},[120,3145,288],{"style":126},[120,3147,576],{"style":291},[120,3149,312],{"style":126},[120,3151,127],{"style":126},[120,3153,3154],{"style":155},"'A pet object with an id and a name.'",[120,3156,178],{"style":126},[120,3158,350],{"style":126},[120,3160,576],{"style":291},[120,3162,312],{"style":126},[120,3164,3165,3167,3169,3172,3175,3177,3179,3182,3184,3187,3189],{"class":122,"style":123},[120,3166,147],{"style":236},[120,3168,288],{"style":126},[120,3170,3171],{"style":291},"List ",[120,3173,3174],{"style":219},"items",[120,3176,298],{"style":139},[120,3178,2666],{"style":126},[120,3180,3181],{"style":155},"'id: number'",[120,3183,223],{"style":139},[120,3185,3186],{"style":155},"'name: string'",[120,3188,2672],{"style":126},[120,3190,1266],{"style":126},[120,3192,3193,3195,3197,3200,3202,3204,3207,3209,3212,3214,3216],{"class":122,"style":123},[120,3194,147],{"style":236},[120,3196,288],{"style":126},[120,3198,3199],{"style":291},"Callout ",[120,3201,1038],{"style":219},[120,3203,298],{"style":139},[120,3205,3206],{"style":155},"\"tip\"",[120,3208,312],{"style":126},[120,3210,3211],{"style":236},"Keep the generator hot with kubb generate --watch.",[120,3213,350],{"style":126},[120,3215,552],{"style":291},[120,3217,312],{"style":126},[120,3219,3220,3222,3224,3226,3228],{"class":122,"style":123},[120,3221,133],{"style":236},[120,3223,350],{"style":126},[120,3225,220],{"style":291},[120,3227,312],{"style":126},[120,3229,159],{"style":139},[120,3231,3232],{"class":122,"style":123},[120,3233,412],{"style":126},[704,3235,3237],{"id":3236},"callout",[13,3238,552],{},[10,3240,3241,3242,3245],{},"A GitHub alert in ",[13,3243,3244],{},"> [!TYPE]"," syntax.",[435,3247,3248,3258],{},[438,3249,3250],{},[441,3251,3252,3254,3256],{},[444,3253,736],{},[444,3255,231],{},[444,3257,741],{},[451,3259,3260,3274,3288],{},[441,3261,3262,3266,3271],{},[456,3263,3264],{},[13,3265,1038],{},[456,3267,3268],{},[13,3269,3270],{},"'tip' | 'note' | 'important' | 'warning' | 'caution'",[456,3272,3273],{},"The alert kind, printed in uppercase",[441,3275,3276,3281,3285],{},[456,3277,3278],{},[13,3279,3280],{},"title?",[456,3282,3283],{},[13,3284,801],{},[456,3286,3287],{},"Text on the marker line",[441,3289,3290,3294,3298],{},[456,3291,3292],{},[13,3293,2087],{},[456,3295,3296],{},[13,3297,771],{},[456,3299,3300,3301,3304],{},"The body. Each line gets a ",[13,3302,3303],{},"> "," prefix.",[111,3306,3308],{"language":203,"code":3307,"class":115},"\u003CCallout type=\"warning\" title=\"Heads up\">\n Breaking change in v6.\n\u003C\u002FCallout>\n\u002F\u002F > [!WARNING] Heads up\n\u002F\u002F > Breaking change in v6.",[13,3309,3310,128,3332,128,3337,128,3345,128,3350],{"class":208},[120,3311,3312,3314,3316,3318,3320,3323,3325,3327,3330],{"class":122,"style":123},[120,3313,288],{"style":126},[120,3315,3199],{"style":291},[120,3317,1038],{"style":219},[120,3319,298],{"style":139},[120,3321,3322],{"style":155},"\"warning\" ",[120,3324,3087],{"style":219},[120,3326,298],{"style":139},[120,3328,3329],{"style":155},"\"Heads up\"",[120,3331,312],{"style":126},[120,3333,3334],{"class":122,"style":123},[120,3335,3336],{"style":236}," Breaking change in v6.",[120,3338,3339,3341,3343],{"class":122,"style":123},[120,3340,350],{"style":126},[120,3342,552],{"style":291},[120,3344,312],{"style":126},[120,3346,3347],{"class":122,"style":123},[120,3348,3349],{"style":1677},"\u002F\u002F > [!WARNING] Heads up",[120,3351,3352],{"class":122,"style":123},[120,3353,3354],{"style":1677},"\u002F\u002F > Breaking change in v6.",[704,3356,3358],{"id":3357},"frontmatter",[13,3359,558],{},[10,3361,3362,3363,3366,3367,3369,3370,3372],{},"YAML frontmatter between ",[13,3364,3365],{},"---"," fences, as the first child of the ",[13,3368,220],{},". An empty ",[13,3371,3079],{}," prints nothing.",[435,3374,3375,3385],{},[438,3376,3377],{},[441,3378,3379,3381,3383],{},[444,3380,736],{},[444,3382,231],{},[444,3384,741],{},[451,3386,3387],{},[441,3388,3389,3393,3398],{},[456,3390,3391],{},[13,3392,3079],{},[456,3394,3395],{},[13,3396,3397],{},"Record\u003Cstring, unknown>",[456,3399,3400],{},"The object to write as YAML",[704,3402,3404],{"id":3403},"heading",[13,3405,564],{},[10,3407,3408,3409,3412,3413,81],{},"An ATX heading, such as ",[13,3410,3411],{},"## Installation"," for ",[13,3414,3415],{},"level={2}",[435,3417,3418,3428],{},[438,3419,3420],{},[441,3421,3422,3424,3426],{},[444,3423,736],{},[444,3425,231],{},[444,3427,741],{},[451,3429,3430,3448],{},[441,3431,3432,3436,3441],{},[456,3433,3434],{},[13,3435,3119],{},[456,3437,3438],{},[13,3439,3440],{},"1 | 2 | 3 | 4 | 5 | 6",[456,3442,3443,3444,3447],{},"The number of ",[13,3445,3446],{},"#"," characters",[441,3449,3450,3454,3458],{},[456,3451,3452],{},[13,3453,2087],{},[456,3455,3456],{},[13,3457,771],{},[456,3459,3460],{},"The heading text",[704,3462,3464],{"id":3463},"list",[13,3465,570],{},[10,3467,3468],{},"A list with one item per line.",[435,3470,3471,3481],{},[438,3472,3473],{},[441,3474,3475,3477,3479],{},[444,3476,736],{},[444,3478,231],{},[444,3480,741],{},[451,3482,3483,3497],{},[441,3484,3485,3489,3494],{},[456,3486,3487],{},[13,3488,3174],{},[456,3490,3491],{},[13,3492,3493],{},"ReadonlyArray\u003Cstring>",[456,3495,3496],{},"The items",[441,3498,3499,3504,3508],{},[456,3500,3501],{},[13,3502,3503],{},"ordered?",[456,3505,3506],{},[13,3507,844],{},[456,3509,3510,3511,223,3514,3517,3518,3521],{},"Numbers the items ",[13,3512,3513],{},"1.",[13,3515,3516],{},"2.",", and so on. Default: a ",[13,3519,3520],{},"-"," list.",[704,3523,3525],{"id":3524},"paragraph",[13,3526,576],{},[10,3528,3529],{},"A paragraph. Inline Markdown passes through as written.",[435,3531,3532,3542],{},[438,3533,3534],{},[441,3535,3536,3538,3540],{},[444,3537,736],{},[444,3539,231],{},[444,3541,741],{},[451,3543,3544],{},[441,3545,3546,3550,3554],{},[456,3547,3548],{},[13,3549,2087],{},[456,3551,3552],{},[13,3553,771],{},[456,3555,3556],{},"The paragraph text",[606,3558,584],{"id":3559},"jsx",[704,3561,3563],{"id":3562},"jsx-component",[13,3564,592],{},[10,3566,3567,3568,3570],{},"Embeds a raw JSX string, fragments included, such as a component body in a ",[13,3569,226],{},". The children must be one plain string.",[435,3572,3573,3583],{},[438,3574,3575],{},[441,3576,3577,3579,3581],{},[444,3578,736],{},[444,3580,231],{},[444,3582,741],{},[451,3584,3585],{},[441,3586,3587,3591,3595],{},[456,3588,3589],{},[13,3590,858],{},[456,3592,3593],{},[13,3594,771],{},[456,3596,3597],{},"The JSX source, written as is",[111,3599,3601],{"language":203,"code":3600,"class":115},"\u003CFunction name=\"MyComponent\" export>\n \u003CJsx>{'return (\\n \u003C>\\n \u003Cdiv>Hello\u003C\u002Fdiv>\\n \u003C\u002F>\\n)'}\u003C\u002FJsx>\n\u003C\u002FFunction>",[13,3602,3603,128,3620,128,3664],{"class":208},[120,3604,3605,3607,3609,3611,3613,3616,3618],{"class":122,"style":123},[120,3606,288],{"style":126},[120,3608,363],{"style":291},[120,3610,974],{"style":219},[120,3612,298],{"style":139},[120,3614,3615],{"style":155},"\"MyComponent\" ",[120,3617,655],{"style":219},[120,3619,312],{"style":126},[120,3621,3622,3624,3626,3628,3630,3632,3635,3638,3641,3643,3646,3648,3651,3653,3656,3658,3660,3662],{"class":122,"style":123},[120,3623,133],{"style":236},[120,3625,288],{"style":126},[120,3627,592],{"style":291},[120,3629,312],{"style":126},[120,3631,127],{"style":126},[120,3633,3634],{"style":155},"'return (",[120,3636,3637],{"style":155},"\\n",[120,3639,3640],{"style":155}," \u003C>",[120,3642,3637],{"style":155},[120,3644,3645],{"style":155}," \u003Cdiv>Hello\u003C\u002Fdiv>",[120,3647,3637],{"style":155},[120,3649,3650],{"style":155}," \u003C\u002F>",[120,3652,3637],{"style":155},[120,3654,3655],{"style":155},")'",[120,3657,178],{"style":126},[120,3659,350],{"style":126},[120,3661,592],{"style":291},[120,3663,312],{"style":126},[120,3665,3666,3668,3670],{"class":122,"style":123},[120,3667,350],{"style":126},[120,3669,226],{"style":291},[120,3671,312],{"style":126},[26,3673,3675],{"id":3674},"less-common-cases","Less common cases",[606,3677,851],{"id":3678},"inline-sources",[10,3680,3681,3682,652,3684,598,3687,3689],{},"When a plugin writes a ",[13,3683,220],{},[13,3685,3686],{},"copy",[13,3688,2288],{},", Kubb copies or absorbs it instead of printing it.",[3691,3692,3693,3702],"ul",{},[3694,3695,3696,3698,3699,3701],"li",{},[13,3697,3686],{}," is an absolute path to copy into the output, through the parser's ",[13,3700,3686],{}," hook if it has one. Its sources count for barrels but are not printed.",[3694,3703,3704,3706,3707,598,3709,3711,3712,3715,3716,3718,3719,3721],{},[13,3705,2288],{}," means Kubb never writes the file. A file that imports from it gets the ",[13,3708,520],{},[13,3710,231],{}," and the imports its body needs. A type used once, or a bare name, goes in place of the name. Anything else becomes one local declaration, numbered on a clash, such as ",[13,3713,3714],{},"Response2",". Importing a ",[13,3717,226],{}," or printed ",[13,3720,474],{}," reports a problem, because neither has a body.",[111,3723,3725],{"language":203,"code":3724,"class":115},"\u003CFile baseName=\"AddPet.ts\" path=\"src\u002Fgen\u002Fmodels\u002FAddPet.ts\" inline>\n \u003CType export name=\"AddPetStatus200\">\n {'Pet'}\n \u003C\u002FType>\n\u003C\u002FFile>",[13,3726,3727,128,3751,128,3768,128,3778,128,3788],{"class":208},[120,3728,3729,3731,3733,3735,3737,3740,3742,3744,3747,3749],{"class":122,"style":123},[120,3730,288],{"style":126},[120,3732,292],{"style":291},[120,3734,295],{"style":219},[120,3736,298],{"style":139},[120,3738,3739],{"style":155},"\"AddPet.ts\" ",[120,3741,304],{"style":219},[120,3743,298],{"style":139},[120,3745,3746],{"style":155},"\"src\u002Fgen\u002Fmodels\u002FAddPet.ts\" ",[120,3748,2288],{"style":219},[120,3750,312],{"style":126},[120,3752,3753,3755,3757,3759,3761,3763,3766],{"class":122,"style":123},[120,3754,133],{"style":236},[120,3756,288],{"style":126},[120,3758,321],{"style":291},[120,3760,324],{"style":219},[120,3762,298],{"style":139},[120,3764,3765],{"style":155},"\"AddPetStatus200\"",[120,3767,312],{"style":126},[120,3769,3770,3772,3774,3776],{"class":122,"style":123},[120,3771,147],{"style":236},[120,3773,127],{"style":126},[120,3775,1814],{"style":155},[120,3777,178],{"style":126},[120,3779,3780,3782,3784,3786],{"class":122,"style":123},[120,3781,133],{"style":236},[120,3783,350],{"style":126},[120,3785,231],{"style":291},[120,3787,312],{"style":126},[120,3789,3790,3792,3794],{"class":122,"style":123},[120,3791,350],{"style":126},[120,3793,220],{"style":291},[120,3795,312],{"style":126},[10,3797,3798,3799,3802,3803,714,3806,3809,3810,3812,3813,3816],{},"The parser's ",[13,3800,3801],{},"inline(files)"," hook runs before barrels, and only its files absorb inline sources. ",[13,3804,3805],{},"parserTs",[13,3807,3808],{},"parserTsx"," have it. An ",[13,3811,2288],{}," set to an ",[13,3814,3815],{},"InlineLanguage"," object still works for older parsers, but it is deprecated.",[10,3818,3819,3820,3822,3823,223,3826,3829,3830,714,3833,88,3836,81],{},"With the ",[13,3821,15],{}," ",[18,3824,98],{"href":3825},"#setup",[13,3827,3828],{},".tsx"," files load ",[13,3831,3832],{},"jsx-runtime",[13,3834,3835],{},"jsx-dev-runtime",[13,3837,15],{},{"title":67,"searchDepth":3839,"depth":3839,"links":3840},5,[3841,3843,3844,3845,3875],{"id":28,"depth":3842,"text":29},2,{"id":98,"depth":3842,"text":99},{"id":185,"depth":3842,"text":188},{"id":432,"depth":3842,"text":433,"children":3846},[3847,3849,3859,3865,3872],{"id":608,"depth":3848,"text":609},3,{"id":702,"depth":3848,"text":461,"children":3850},[3851,3853,3854,3855,3856,3857,3858],{"id":706,"depth":3852,"text":220},4,{"id":13,"depth":3852,"text":474},{"id":1141,"depth":3852,"text":480},{"id":1308,"depth":3852,"text":486},{"id":1537,"depth":3852,"text":492},{"id":1866,"depth":3852,"text":498},{"id":1504,"depth":3852,"text":504},{"id":2253,"depth":3848,"text":512,"children":3860},[3861,3862,3863,3864],{"id":2401,"depth":3852,"text":520},{"id":2523,"depth":3852,"text":226},{"id":2716,"depth":3852,"text":531},{"id":1038,"depth":3852,"text":231},{"id":2952,"depth":3848,"text":544,"children":3866},[3867,3868,3869,3870,3871],{"id":3236,"depth":3852,"text":552},{"id":3357,"depth":3852,"text":558},{"id":3403,"depth":3852,"text":564},{"id":3463,"depth":3852,"text":570},{"id":3524,"depth":3852,"text":576},{"id":3559,"depth":3848,"text":584,"children":3873},[3874],{"id":3562,"depth":3852,"text":592},{"id":3674,"depth":3842,"text":3675,"children":3876},[3877],{"id":3678,"depth":3848,"text":851},"Reference for kubb\u002Fjsx, backed by @kubb\u002Frenderer-jsx: the jsxRenderer, the tsconfig setup, and the props of every built-in component.","md",{"layout":3881,"title":5,"description":3878,"outline":3882,"order":3839,"navigation":3883},"doc",[3842,3848],{"title":584,"icon":3884},"i-iconoir-code","JSX renderer",{"layout":3881,"outline":3887},[3842,3848],{"title":584,"icon":3884},"\u002Fdocs\u002F5.x\u002Freference\u002Fjsx",{"title":5,"description":3878},{"loc":3889},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fjsx.md","docs\u002F5.x\u002Freference\u002Fjsx","N_Pp37zAabjb1OTEETnSKmsetdbD_vHG2Fj4p9UGCrQ",1795989034941,"2e8b4c62-5b8c-4587-97c0-530d08a9bd53"]