Skip to content

One wildcard barrel

Set type to 'all' so each barrel uses export *, a smaller barrel that re-exports everything.

kubb.config.ts
typescript
import { 
defineConfig
} from 'kubb/config'
import {
pluginTs
} from '@kubb/plugin-ts'
export default
defineConfig
({
input
: './petStore.yaml',
output
: {
path
: './src/gen',
clean
: true,
barrel
: {
type
: 'all' } },
plugins
: [
pluginTs
()],
})