[{"data":1,"prerenderedAt":1287},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fplugin-barrel\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":1286,"source":4},"extensions\u002Fkubb-labs\u002Fplugin-barrel\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":1273},"minimark",[10,33,38,143,147,151,178,262,301,325,353,375,377,383,413,429,546,548,562,599,722,725,741,777,788,1125,1140,1172,1175,1257],[11,12,13,17,18,21,22,25,26,32],"p",{},[14,15,16],"code",{},"pluginBarrel"," takes no arguments. You configure it through ",[14,19,20],{},"output.barrel",", either on ",[14,23,24],{},"defineConfig"," to set the root barrel and the default every plugin inherits, or on a single plugin to override that plugin's barrel. The plugin-level behavior is also summarized under ",[27,28,30],"a",{"href":29},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output-barrel",[14,31,20],{}," in the shared plugin options.",[34,35,37],"h2",{"id":36},"options-overview","Options overview",[39,40,41,57],"table",{},[42,43,44],"thead",{},[45,46,47,51,54],"tr",{},[48,49,50],"th",{},"Option",[48,52,53],{},"Purpose",[48,55,56],{},"Default",[58,59,60,89,109,126],"tbody",{},[45,61,62,70,73],{},[63,64,65],"td",{},[27,66,68],{"href":67},"#output-barrel",[14,69,20],{},[63,71,72],{},"Re-export style for the barrel files.",[63,74,75,78,79,81,82,85,86],{},[14,76,77],{},"false"," on ",[14,80,24],{},", ",[14,83,84],{},"{ type: 'named' }"," in every generator plugin's default ",[14,87,88],{},"output",[45,90,91,100,103],{},[63,92,93,94],{},"↳ ",[27,95,97],{"href":96},"#type",[14,98,99],{},"output.barrel.type",[63,101,102],{},"Named exports or a wildcard export.",[63,104,105,106,108],{},"Required when ",[14,107,20],{}," is an object",[45,110,111,119,122],{},[63,112,93,113],{},[27,114,116],{"href":115},"#nested",[14,117,118],{},"output.barrel.nested",[63,120,121],{},"Choose whether barrels reference subdirectory barrels.",[63,123,124],{},[14,125,77],{},[45,127,128,136,139],{},[63,129,93,130],{},[27,131,133],{"href":132},"#namespace",[14,134,135],{},"output.barrel.namespace",[63,137,138],{},"Expose each immediate group as a named namespace.",[63,140,141],{},[14,142,77],{},[34,144,146],{"id":145},"option-details","Option details",[148,149,20],"h3",{"id":150},"outputbarrel",[11,152,153,154,157,158,160,161,163,164,167,168,171,172,174,175,177],{},"Kubb writes an ",[14,155,156],{},"index.ts"," in every directory of a plugin's output, and a root barrel when ",[14,159,20],{}," is set on ",[14,162,24],{},". For two plugins that write to ",[14,165,166],{},"models"," and ",[14,169,170],{},"clients",", with ",[14,173,20],{}," set on ",[14,176,24],{},":",[179,180,184],"pre",{"language":181,"code":182,"class":183},"text","src\u002Fgen\n├── index.ts              root barrel\n├── models\n│   ├── index.ts          plugin barrel\n│   ├── Pet.ts\n│   └── User.ts\n└── clients\n    ├── index.ts          plugin barrel\n    ├── pet\n    │   ├── index.ts\n    │   └── getPetById.ts\n    └── store\n        ├── index.ts\n        └── getInventory.ts","highlights",[14,185,187,196,197,196,202,196,207,196,212,196,217,196,222,196,227,196,232,196,237,196,242,196,247,196,252,196,257],{"class":186},"language-text",[188,189,192],"span",{"class":190,"style":191},"line","display: inline",[188,193,195],{"style":194},"color:#24292e;--hls-dark:#e1e4e8","src\u002Fgen","\n",[188,198,199],{"class":190,"style":191},[188,200,201],{"style":194},"├── index.ts              root barrel",[188,203,204],{"class":190,"style":191},[188,205,206],{"style":194},"├── models",[188,208,209],{"class":190,"style":191},[188,210,211],{"style":194},"│   ├── index.ts          plugin barrel",[188,213,214],{"class":190,"style":191},[188,215,216],{"style":194},"│   ├── Pet.ts",[188,218,219],{"class":190,"style":191},[188,220,221],{"style":194},"│   └── User.ts",[188,223,224],{"class":190,"style":191},[188,225,226],{"style":194},"└── clients",[188,228,229],{"class":190,"style":191},[188,230,231],{"style":194},"    ├── index.ts          plugin barrel",[188,233,234],{"class":190,"style":191},[188,235,236],{"style":194},"    ├── pet",[188,238,239],{"class":190,"style":191},[188,240,241],{"style":194},"    │   ├── index.ts",[188,243,244],{"class":190,"style":191},[188,245,246],{"style":194},"    │   └── getPetById.ts",[188,248,249],{"class":190,"style":191},[188,250,251],{"style":194},"    └── store",[188,253,254],{"class":190,"style":191},[188,255,256],{"style":194},"        ├── index.ts",[188,258,259],{"class":190,"style":191},[188,260,261],{"style":194},"        └── getInventory.ts",[39,263,264,272],{},[42,265,266],{},[45,267,268,270],{},[48,269],{},[48,271],{},[58,273,274,284,293],{},[45,275,276,279],{},[63,277,278],{},"Type",[63,280,281],{},[14,282,283],{},"{ type: 'all' | 'named', nested?: boolean, namespace?: boolean } | false",[45,285,286,289],{},[63,287,288],{},"Required",[63,290,291],{},[14,292,77],{},[45,294,295,297],{},[63,296,56],{},[63,298,299],{},[14,300,77],{},[11,302,303,304,307,308,310,311,314,315,318,319,321,322,324],{},"The ",[14,305,306],{},"type"," field picks the export style. A plugin's ",[14,309,20],{}," also accepts ",[14,312,313],{},"nested",", so each barrel re-exports the barrels below it instead of the leaf files. Set ",[14,316,317],{},"namespace: true"," to add named group exports alongside the standalone exports. The root ",[14,320,20],{}," accepts only ",[14,323,306],{}," and always stays flat.",[11,326,327,328,330,331,334,335,337,338,341,342,345,346,349,350,352],{},"A plugin called without ",[14,329,88],{}," uses its own default, which sets ",[14,332,333],{},"barrel: { type: 'named' }",". If you pass your own ",[14,336,88],{}," object, it replaces that default. ",[14,339,340],{},"pluginTs({ output: { path: 'types' } })"," then has no ",[14,343,344],{},"barrel"," and uses ",[14,347,348],{},"config.output.barrel",", which is ",[14,351,77],{}," unless you set it.",[11,354,355,356,78,359,361,362,364,365,367,368,370,371,374],{},"Set ",[14,357,358],{},"barrel: { type: 'named' | 'all' }",[14,360,24],{}," to enable barrels everywhere: a root barrel, and the default every plugin without its own ",[14,363,20],{}," inherits. A plugin that sets its own ",[14,366,20],{}," overrides that inherited value, including back to ",[14,369,77],{},", which also drops its files from the root barrel. A plugin with ",[14,372,373],{},"output.mode: 'file'"," gets no barrel of its own, and the root barrel re-exports that file directly.",[148,376,306],{"id":306},[11,378,379,380,382],{},"Export style for the barrel files. Required whenever ",[14,381,20],{}," is set to an object.",[39,384,385,393],{},[42,386,387],{},[45,388,389,391],{},[48,390],{},[48,392],{},[58,394,395,404],{},[45,396,397,399],{},[63,398,278],{},[63,400,401],{},[14,402,403],{},"'all' | 'named'",[45,405,406,408],{},[63,407,288],{},[63,409,410],{},[14,411,412],{},"true",[414,415,416,421],"field-group",{},[417,418,420],"field",{"name":419},"'named'","Re-exports each symbol by name from the file's named exports. Best for tree-shaking and explicit imports.",[417,422,424,425,428],{"name":423},"'all'","Uses ",[14,426,427],{},"export *",", a smaller barrel that re-exports everything.",[430,431,432,506],"code-group",{},[179,433,436],{"language":434,"filename":419,"code":435,"class":183},"typescript","\u002F\u002F src\u002Fgen\u002Findex.ts\nexport { getUser } from '.\u002Fapi\u002Fuser'\nexport { getPost, Post } from '.\u002Fapi\u002Fpost'\nexport { User } from '.\u002Fapi\u002Ftypes\u002FUser'",[14,437,439,196,445,196,468,196,490],{"class":438},"language-typescript",[188,440,441],{"class":190,"style":191},[188,442,444],{"style":443},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F src\u002Fgen\u002Findex.ts",[188,446,447,451,455,458,461,464],{"class":190,"style":191},[188,448,450],{"style":449},"color:#d73a49;--hls-dark:#f97583","export ",[188,452,454],{"style":453},"color:#005cc5;--hls-dark:#79b8ff","{ ",[188,456,457],{"style":194},"getUser ",[188,459,460],{"style":453},"} ",[188,462,463],{"style":449},"from ",[188,465,467],{"style":466},"color:#032f62;--hls-dark:#9ecbff","'.\u002Fapi\u002Fuser'",[188,469,470,472,474,477,479,483,485,487],{"class":190,"style":191},[188,471,450],{"style":449},[188,473,454],{"style":453},[188,475,476],{"style":194},"getPost",[188,478,81],{"style":449},[188,480,482],{"style":481},"color:#6f42c1;--hls-dark:#b392f0","Post ",[188,484,460],{"style":453},[188,486,463],{"style":449},[188,488,489],{"style":466},"'.\u002Fapi\u002Fpost'",[188,491,492,494,496,499,501,503],{"class":190,"style":191},[188,493,450],{"style":449},[188,495,454],{"style":453},[188,497,498],{"style":481},"User ",[188,500,460],{"style":453},[188,502,463],{"style":449},[188,504,505],{"style":466},"'.\u002Fapi\u002Ftypes\u002FUser'",[179,507,509],{"language":434,"filename":423,"code":508,"class":183},"\u002F\u002F src\u002Fgen\u002Findex.ts\nexport * from '.\u002Fapi\u002Fuser'\nexport * from '.\u002Fapi\u002Fpost'\nexport * from '.\u002Fapi\u002Ftypes\u002FUser'",[14,510,511,196,515,196,526,196,536],{"class":438},[188,512,513],{"class":190,"style":191},[188,514,444],{"style":443},[188,516,517,519,522,524],{"class":190,"style":191},[188,518,450],{"style":449},[188,520,521],{"style":449},"* ",[188,523,463],{"style":449},[188,525,467],{"style":466},[188,527,528,530,532,534],{"class":190,"style":191},[188,529,450],{"style":449},[188,531,521],{"style":449},[188,533,463],{"style":449},[188,535,489],{"style":466},[188,537,538,540,542,544],{"class":190,"style":191},[188,539,450],{"style":449},[188,541,521],{"style":449},[188,543,463],{"style":449},[188,545,505],{"style":466},[148,547,313],{"id":313},[11,549,550,551,554,555,558,559,561],{},"Changes what each barrel references. A barrel is written for every directory either way. With ",[14,552,553],{},"nested: false",", the plugin's top barrel reaches through to the leaf files. With ",[14,556,557],{},"nested: true",", each barrel re-exports only what sits directly inside its directory, including the subdirectory barrels below it, so callers can import from any depth. This field works on a plugin's ",[14,560,20],{}," only.",[39,563,564,572],{},[42,565,566],{},[45,567,568,570],{},[48,569],{},[48,571],{},[58,573,574,583,591],{},[45,575,576,578],{},[63,577,278],{},[63,579,580],{},[14,581,582],{},"boolean",[45,584,585,587],{},[63,586,288],{},[63,588,589],{},[14,590,77],{},[45,592,593,595],{},[63,594,56],{},[63,596,597],{},[14,598,77],{},[430,600,601,663],{},[179,602,605],{"language":434,"filename":603,"code":604,"class":183},"nested: false (default) → barrels reference leaf files","\u002F\u002F src\u002Fgen\u002Fapi\u002Findex.ts\nexport * from '.\u002Fuser'\nexport * from '.\u002Fpost'\nexport * from '.\u002Ftypes\u002FUser'\n\n\u002F\u002F src\u002Fgen\u002Fapi\u002Ftypes\u002Findex.ts\nexport * from '.\u002FUser'",[14,606,607,196,612,196,623,196,634,196,645,196,647,196,652],{"class":438},[188,608,609],{"class":190,"style":191},[188,610,611],{"style":443},"\u002F\u002F src\u002Fgen\u002Fapi\u002Findex.ts",[188,613,614,616,618,620],{"class":190,"style":191},[188,615,450],{"style":449},[188,617,521],{"style":449},[188,619,463],{"style":449},[188,621,622],{"style":466},"'.\u002Fuser'",[188,624,625,627,629,631],{"class":190,"style":191},[188,626,450],{"style":449},[188,628,521],{"style":449},[188,630,463],{"style":449},[188,632,633],{"style":466},"'.\u002Fpost'",[188,635,636,638,640,642],{"class":190,"style":191},[188,637,450],{"style":449},[188,639,521],{"style":449},[188,641,463],{"style":449},[188,643,644],{"style":466},"'.\u002Ftypes\u002FUser'",[188,646],{"class":190,"style":191},[188,648,649],{"class":190,"style":191},[188,650,651],{"style":443},"\u002F\u002F src\u002Fgen\u002Fapi\u002Ftypes\u002Findex.ts",[188,653,654,656,658,660],{"class":190,"style":191},[188,655,450],{"style":449},[188,657,521],{"style":449},[188,659,463],{"style":449},[188,661,662],{"style":466},"'.\u002FUser'",[179,664,667],{"language":434,"filename":665,"code":666,"class":183},"nested: true → barrels reference sub-barrels","\u002F\u002F src\u002Fgen\u002Fapi\u002Findex.ts re-exports its files and subdirectories\nexport * from '.\u002Fuser'\nexport * from '.\u002Fpost'\nexport * from '.\u002Ftypes'\n\n\u002F\u002F src\u002Fgen\u002Fapi\u002Ftypes\u002Findex.ts re-exports its files\nexport * from '.\u002FUser'",[14,668,669,196,674,196,684,196,694,196,705,196,707,196,712],{"class":438},[188,670,671],{"class":190,"style":191},[188,672,673],{"style":443},"\u002F\u002F src\u002Fgen\u002Fapi\u002Findex.ts re-exports its files and subdirectories",[188,675,676,678,680,682],{"class":190,"style":191},[188,677,450],{"style":449},[188,679,521],{"style":449},[188,681,463],{"style":449},[188,683,622],{"style":466},[188,685,686,688,690,692],{"class":190,"style":191},[188,687,450],{"style":449},[188,689,521],{"style":449},[188,691,463],{"style":449},[188,693,633],{"style":466},[188,695,696,698,700,702],{"class":190,"style":191},[188,697,450],{"style":449},[188,699,521],{"style":449},[188,701,463],{"style":449},[188,703,704],{"style":466},"'.\u002Ftypes'",[188,706],{"class":190,"style":191},[188,708,709],{"class":190,"style":191},[188,710,711],{"style":443},"\u002F\u002F src\u002Fgen\u002Fapi\u002Ftypes\u002Findex.ts re-exports its files",[188,713,714,716,718,720],{"class":190,"style":191},[188,715,450],{"style":449},[188,717,521],{"style":449},[188,719,463],{"style":449},[188,721,662],{"style":466},[148,723,724],{"id":724},"namespace",[11,726,727,728,730,731,733,734,736,737,740],{},"Expose each immediate subdirectory as a named namespace, alongside its standalone exports. Editors can offer auto-imports for these namespaces when the generated files belong to the TypeScript project. This field works on a plugin's ",[14,729,20],{}," only and enables nested barrels, even when ",[14,732,313],{}," is unset or ",[14,735,77],{},". The plugin needs its own ",[14,738,739],{},"output.path",". A plugin that writes to the output root gets a warning and no namespaces.",[39,742,743,751],{},[42,744,745],{},[45,746,747,749],{},[48,748],{},[48,750],{},[58,752,753,761,769],{},[45,754,755,757],{},[63,756,278],{},[63,758,759],{},[14,760,582],{},[45,762,763,765],{},[63,764,288],{},[63,766,767],{},[14,768,77],{},[45,770,771,773],{},[63,772,56],{},[63,774,775],{},[14,776,77],{},[11,778,779,780,783,784,787],{},"For tag-grouped fetch clients, use ",[14,781,782],{},"group.name"," to name the service directories. Leave fetch ",[14,785,786],{},"sdk"," unset so React Query can import the standalone operation functions.",[179,789,792],{"language":434,"filename":790,"code":791,"class":183},"kubb.config.ts","import { defineConfig } from 'kubb\u002Fconfig'\nimport { pluginFetch } from '@kubb\u002Fplugin-fetch'\nimport { pluginReactQuery } from '@kubb\u002Fplugin-react-query'\nimport { pluginTs } from '@kubb\u002Fplugin-ts'\n\nexport default defineConfig({\n  input: '.\u002FpetStore.yaml',\n  output: { path: '.\u002Fsrc\u002Fgen', barrel: { type: 'named' } },\n  plugins: [\n    pluginTs({ output: { path: 'types' } }),\n    pluginFetch({\n      output: { path: 'client', barrel: { type: 'named', namespace: true } },\n      group: { type: 'tag', name: ({ group }) => `${group}Service` },\n    }),\n    pluginReactQuery({ output: { path: 'hooks' } }),\n  ],\n})",[14,793,794,196,811,196,827,196,843,196,859,196,861,196,873,196,890,196,928,196,940,196,969,196,978,196,1023,196,1077,196,1086,196,1112,196,1121],{"class":438},[188,795,796,799,801,804,806,808],{"class":190,"style":191},[188,797,798],{"style":449},"import ",[188,800,454],{"style":453},[188,802,803],{"style":194},"defineConfig ",[188,805,460],{"style":453},[188,807,463],{"style":449},[188,809,810],{"style":466},"'kubb\u002Fconfig'",[188,812,813,815,817,820,822,824],{"class":190,"style":191},[188,814,798],{"style":449},[188,816,454],{"style":453},[188,818,819],{"style":194},"pluginFetch ",[188,821,460],{"style":453},[188,823,463],{"style":449},[188,825,826],{"style":466},"'@kubb\u002Fplugin-fetch'",[188,828,829,831,833,836,838,840],{"class":190,"style":191},[188,830,798],{"style":449},[188,832,454],{"style":453},[188,834,835],{"style":194},"pluginReactQuery ",[188,837,460],{"style":453},[188,839,463],{"style":449},[188,841,842],{"style":466},"'@kubb\u002Fplugin-react-query'",[188,844,845,847,849,852,854,856],{"class":190,"style":191},[188,846,798],{"style":449},[188,848,454],{"style":453},[188,850,851],{"style":194},"pluginTs ",[188,853,460],{"style":453},[188,855,463],{"style":449},[188,857,858],{"style":466},"'@kubb\u002Fplugin-ts'",[188,860],{"class":190,"style":191},[188,862,863,865,868,870],{"class":190,"style":191},[188,864,450],{"style":449},[188,866,867],{"style":449},"default ",[188,869,24],{"style":481},[188,871,872],{"style":453},"({",[188,874,875,878,881,884,887],{"class":190,"style":191},[188,876,877],{"style":453},"  ",[188,879,880],{"style":453},"input",[188,882,883],{"style":449},": ",[188,885,886],{"style":466},"'.\u002FpetStore.yaml'",[188,888,889],{"style":449},",",[188,891,892,894,896,898,900,903,905,908,910,912,914,916,918,920,923,926],{"class":190,"style":191},[188,893,877],{"style":449},[188,895,88],{"style":453},[188,897,883],{"style":449},[188,899,454],{"style":453},[188,901,902],{"style":453},"path",[188,904,883],{"style":449},[188,906,907],{"style":466},"'.\u002Fsrc\u002Fgen'",[188,909,81],{"style":449},[188,911,344],{"style":453},[188,913,883],{"style":449},[188,915,454],{"style":453},[188,917,306],{"style":453},[188,919,883],{"style":449},[188,921,922],{"style":466},"'named' ",[188,924,925],{"style":453},"} }",[188,927,889],{"style":449},[188,929,930,932,935,937],{"class":190,"style":191},[188,931,877],{"style":449},[188,933,934],{"style":453},"plugins",[188,936,883],{"style":449},[188,938,939],{"style":453},"[",[188,941,942,945,948,951,953,955,957,959,961,964,967],{"class":190,"style":191},[188,943,944],{"style":453},"    ",[188,946,947],{"style":481},"pluginTs",[188,949,950],{"style":453},"({ ",[188,952,88],{"style":453},[188,954,883],{"style":449},[188,956,454],{"style":453},[188,958,902],{"style":453},[188,960,883],{"style":449},[188,962,963],{"style":466},"'types' ",[188,965,966],{"style":453},"} })",[188,968,889],{"style":449},[188,970,971,973,976],{"class":190,"style":191},[188,972,944],{"style":449},[188,974,975],{"style":481},"pluginFetch",[188,977,872],{"style":453},[188,979,980,983,985,987,989,991,993,996,998,1000,1002,1004,1006,1008,1010,1012,1014,1016,1019,1021],{"class":190,"style":191},[188,981,982],{"style":453},"      ",[188,984,88],{"style":453},[188,986,883],{"style":449},[188,988,454],{"style":453},[188,990,902],{"style":453},[188,992,883],{"style":449},[188,994,995],{"style":466},"'client'",[188,997,81],{"style":449},[188,999,344],{"style":453},[188,1001,883],{"style":449},[188,1003,454],{"style":453},[188,1005,306],{"style":453},[188,1007,883],{"style":449},[188,1009,419],{"style":466},[188,1011,81],{"style":449},[188,1013,724],{"style":453},[188,1015,883],{"style":449},[188,1017,1018],{"style":453},"true ",[188,1020,925],{"style":453},[188,1022,889],{"style":449},[188,1024,1025,1027,1030,1032,1034,1036,1038,1041,1043,1046,1048,1050,1053,1056,1059,1062,1065,1067,1070,1073,1075],{"class":190,"style":191},[188,1026,982],{"style":449},[188,1028,1029],{"style":453},"group",[188,1031,883],{"style":449},[188,1033,454],{"style":453},[188,1035,306],{"style":453},[188,1037,883],{"style":449},[188,1039,1040],{"style":466},"'tag'",[188,1042,81],{"style":449},[188,1044,1045],{"style":453},"name",[188,1047,883],{"style":449},[188,1049,950],{"style":453},[188,1051,1052],{"style":194},"group ",[188,1054,1055],{"style":453},"}) ",[188,1057,1058],{"style":449},"=> ",[188,1060,1061],{"style":466},"`",[188,1063,1064],{"style":194},"${",[188,1066,1029],{"style":194},[188,1068,1069],{"style":194},"}",[188,1071,1072],{"style":466},"Service` ",[188,1074,1069],{"style":453},[188,1076,889],{"style":449},[188,1078,1079,1081,1084],{"class":190,"style":191},[188,1080,944],{"style":449},[188,1082,1083],{"style":453},"})",[188,1085,889],{"style":449},[188,1087,1088,1090,1093,1095,1097,1099,1101,1103,1105,1108,1110],{"class":190,"style":191},[188,1089,944],{"style":449},[188,1091,1092],{"style":481},"pluginReactQuery",[188,1094,950],{"style":453},[188,1096,88],{"style":453},[188,1098,883],{"style":449},[188,1100,454],{"style":453},[188,1102,902],{"style":453},[188,1104,883],{"style":449},[188,1106,1107],{"style":466},"'hooks' ",[188,1109,966],{"style":453},[188,1111,889],{"style":449},[188,1113,1114,1116,1119],{"class":190,"style":191},[188,1115,877],{"style":449},[188,1117,1118],{"style":453},"]",[188,1120,889],{"style":449},[188,1122,1123],{"class":190,"style":191},[188,1124,1083],{"style":453},[11,1126,1127,1128,1131,1132,1135,1136,1139],{},"For a ",[14,1129,1130],{},"pet"," tag, the operations land in ",[14,1133,1134],{},"src\u002Fgen\u002Fclient\u002FpetService\u002F",". ",[14,1137,1138],{},"src\u002Fgen\u002Fclient\u002Findex.ts"," exports both the operations and their PascalCase namespace:",[179,1141,1143],{"language":434,"filename":1138,"code":1142,"class":183},"export * from '.\u002FpetService\u002Findex'\nexport * as PetService from '.\u002FpetService\u002Findex'",[14,1144,1145,196,1156],{"class":438},[188,1146,1147,1149,1151,1153],{"class":190,"style":191},[188,1148,450],{"style":449},[188,1150,521],{"style":449},[188,1152,463],{"style":449},[188,1154,1155],{"style":466},"'.\u002FpetService\u002Findex'",[188,1157,1158,1160,1162,1165,1168,1170],{"class":190,"style":191},[188,1159,450],{"style":449},[188,1161,521],{"style":449},[188,1163,1164],{"style":449},"as ",[188,1166,1167],{"style":481},"PetService ",[188,1169,463],{"style":449},[188,1171,1155],{"style":466},[11,1173,1174],{},"Both calling styles remain available alongside the generated hooks and query options:",[179,1176,1179],{"language":434,"filename":1177,"code":1178,"class":183},"src\u002Fexample.ts","import { PetService, getPet } from '.\u002Fgen\u002Fclient'\n\nawait PetService.getPet({ path: { petId: '123' } })\nawait getPet({ path: { petId: '123' } })",[14,1180,1181,196,1202,196,1204,196,1235],{"class":438},[188,1182,1183,1185,1187,1190,1192,1195,1197,1199],{"class":190,"style":191},[188,1184,798],{"style":449},[188,1186,454],{"style":453},[188,1188,1189],{"style":481},"PetService",[188,1191,81],{"style":449},[188,1193,1194],{"style":194},"getPet ",[188,1196,460],{"style":453},[188,1198,463],{"style":449},[188,1200,1201],{"style":466},"'.\u002Fgen\u002Fclient'",[188,1203],{"class":190,"style":191},[188,1205,1206,1209,1211,1214,1217,1219,1221,1223,1225,1228,1230,1233],{"class":190,"style":191},[188,1207,1208],{"style":449},"await ",[188,1210,1189],{"style":481},[188,1212,1213],{"style":449},".",[188,1215,1216],{"style":481},"getPet",[188,1218,950],{"style":453},[188,1220,902],{"style":453},[188,1222,883],{"style":449},[188,1224,454],{"style":453},[188,1226,1227],{"style":453},"petId",[188,1229,883],{"style":449},[188,1231,1232],{"style":466},"'123' ",[188,1234,966],{"style":453},[188,1236,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255],{"class":190,"style":191},[188,1238,1208],{"style":449},[188,1240,1216],{"style":481},[188,1242,950],{"style":453},[188,1244,902],{"style":453},[188,1246,883],{"style":449},[188,1248,454],{"style":453},[188,1250,1227],{"style":453},[188,1252,883],{"style":449},[188,1254,1232],{"style":466},[188,1256,966],{"style":453},[11,1258,1259,1260,1262,1263,1266,1267,1269,1270,1272],{},"An enabled root barrel also forwards ",[14,1261,1189],{},". Namespace names use the PascalCase directory name. Names starting with a digit get an ",[14,1264,1265],{},"_"," prefix, and names with no letters or digits become ",[14,1268,1265],{},". Conflicting exports produce a diagnostic. Change ",[14,1271,782],{}," to resolve collisions.",{"title":1274,"searchDepth":1275,"depth":1275,"links":1276},"",5,[1277,1279],{"id":36,"depth":1278,"text":37},2,{"id":145,"depth":1278,"text":146,"children":1280},[1281,1283,1284,1285],{"id":150,"depth":1282,"text":20},3,{"id":306,"depth":1282,"text":306},{"id":313,"depth":1282,"text":313},{"id":724,"depth":1282,"text":724},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-barrel\u002Foptions",1793615942579]