UNPKG

clustering-tfjs

Version:

High-performance TypeScript clustering algorithms (K-Means, Spectral, Agglomerative) with TensorFlow.js acceleration and scikit-learn compatibility

16 lines (15 loc) 446 B
"use strict"; /** * Advanced TypeScript type definitions for multi-platform support * * This file provides conditional types and module augmentation for * platform-aware type safety across browser and Node.js environments. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.isPlatform = isPlatform; /** * Type guard for platform detection */ function isPlatform(platform, target) { return platform === target; }