@devup-api/core
v0.1.21
Published
Core types and interfaces for devup-api.
Downloads
1,378
Readme
@devup-api/core
Core types and interfaces for devup-api.
Installation
npm install @devup-api/coreExports
Types
DevupApiOptions- Plugin configuration optionsDevupApiTypeGeneratorOptions- Type generation optionsUrlMapValue- URL map entry structureDevupApiStruct- API structure types for type-safe API calls
Interfaces
interface DevupApiOptions {
openapiFile?: string
tempDir?: string
convertCase?: 'snake' | 'camel' | 'pascal' | 'maintain'
requestDefaultNonNullable?: boolean
responseDefaultNonNullable?: boolean
}
interface UrlMapValue {
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
url: string
}Usage
This package is primarily used internally by other devup-api packages. You typically don't need to import from this package directly unless you're building custom integrations.
import type { DevupApiOptions } from '@devup-api/core'License
Apache 2.0
