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