Socket
Book a DemoInstallSign in
Socket

@syntropylog/types

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syntropylog/types

Shared types for SyntropyLog ecosystem

0.1.5
latest
Source
npmnpm
Version published
Weekly downloads
8
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

SyntropyLog Logo

@syntropylog/types

Shared types for the SyntropyLog ecosystem.

Version 0.1.5

New in this version:

  • Updated package-lock.json and dependencies
  • Improved type definitions for better TypeScript support
  • Streamlined types for better performance and consistency
  • Removed deprecated types to reduce bundle size

Overview

This package contains the fundamental types used across the SyntropyLog ecosystem. These types are designed to be shared between the main library and future modules like adapters and serializers.

Installation

npm install @syntropylog/types

Usage

import { 
  JsonValue, 
  LogMetadata, 
  ILogger, 
  IContextManager,
  RedisValue 
} from '@syntropylog/types';

// Use types in your implementations
const metadata: LogMetadata = {
  userId: '123',
  operation: 'create',
  timestamp: Date.now()
};

// Implement interfaces
class MyLogger implements ILogger {
  // Implementation...
}

Available Types

Base Types

  • JsonValue - Any value that can be safely serialized to JSON
  • SerializableData - Union type for all data types that can be serialized

Logging Types

  • LogMetadata - Type for log metadata objects
  • LogBindings - Type for log bindings attached to logger instances
  • LogRetentionRules - Type for retention rules
  • LogFormatArg - Type for format arguments
  • LogArguments - Type for logging method arguments
  • ILogger - Base interface for logger implementations

Context Types

  • ContextValue - Type for values that can be stored in context
  • ContextData - Type for context data structure
  • ContextConfig - Type for context configuration options
  • IContextManager - Base interface for context manager implementations

Redis Types

  • RedisValue - Type for Redis values
  • RedisListElement - Type for Redis list elements
  • RedisSetMember - Type for Redis set members
  • RedisSortedSetMember - Type for Redis sorted set members
  • RedisHashValue - Type for Redis hash field values
  • RedisCommandOptions - Type for Redis command options

Serialization Types

  • SerializedData - Type for serialization result data
  • SerializationContextConfig - Type for serialization context configuration
  • SanitizationConfig - Type for sanitization configuration
  • SerializationPipelineContext - Type for pipeline context
  • SerializationResult - Type for serialization result
  • SerializationMetadata - Type for serialization metadata
  • SerializationMetrics - Type for serialization metrics
  • ComplexityDistribution - Type for complexity distribution metrics
  • SerializerDistribution - Type for serializer distribution metrics
  • TimeoutStrategyDistribution - Type for timeout strategy distribution metrics

Logging Types

  • LogEntry - Type for log entry structure
  • LoggerOptions - Type for logger options
  • LoggerDependencies - Type for logger dependencies

Development

# Build the package
npm run build

# Clean build artifacts
npm run clean

License

MIT

Keywords

types

FAQs

Package last updated on 20 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.