1.3.0 • Published 8 months ago

@basefloor/shared v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Basefloor Shared

Common types, schemas, and utilities for the Basefloor ecosystem.

Installation

npm install @basefloor/shared

Usage

Configuration Types

import type { BasefloorConfig, ApiConfig, AppConfig } from '@basefloor/shared'

const config: BasefloorConfig = {
  project: {
    name: 'My App',
    port: 3000
  },
  api: {
    // API-specific configuration
  },
  app: {
    // App-specific configuration
  }
}

Validation Schemas

import { configSchema } from '@basefloor/shared'

// Validate configuration
const result = configSchema.safeParse(userConfig)
if (result.success) {
  // Configuration is valid
  console.log(result.data)
} else {
  // Handle validation errors
  console.error(result.error.issues)
}

Features

  • 📝 TypeScript Types - Complete type definitions for the ecosystem
  • Validation Schemas - Zod schemas for configuration validation
  • 🔧 Utilities - Common utility functions
  • 🔒 Type Safety - Ensures consistency across packages

Documentation

For detailed documentation, visit basefloor.dev

License

MIT © BasefloorAPI

1.3.0

8 months ago

1.2.0

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.2

8 months ago