API Reference
Complete reference for all functions, types, and modules
Modules
kotlinify-ts/scope
Scope functions: let, apply, also, run, with, takeIf, takeUnless
kotlinify-ts/collections
40+ array operations: groupBy, partition, chunked, windowed, and more
kotlinify-ts/strings
String utilities: trimIndent, trimMargin, padding, affixes
kotlinify-ts/ranges
Numeric ranges: rangeTo, until, downTo with lazy iteration
kotlinify-ts/sequences
Lazy sequences with efficient evaluation
kotlinify-ts/flow
Reactive streams with backpressure
kotlinify-ts/coroutines
Structured concurrency with cancellation
kotlinify-ts/monads
Typed error handling with Option, Either, Result
kotlinify-ts/collections
Utilities for arrays and iterables
Installation
npm install kotlinify-tsOr with yarn:
yarn add kotlinify-tsImport Styles
Named Imports
import { let, apply } from 'kotlinify-ts';Namespace Imports
import * as Scope from 'kotlinify-ts';Tree-Shaking
All modules are tree-shakeable. Import only what you need to minimize bundle size.
TypeScript Support
Full TypeScript support with complete type inference. No separate @types package needed.
- ✓ Complete type definitions included
- ✓ Full generic type inference
- ✓ Strict null safety
- ✓ No implicit any
Browser Compatibility
Works in all modern browsers. ES2015+ features are used, transpile if you need older browser support.
- ✓ Chrome/Edge 51+
- ✓ Firefox 54+
- ✓ Safari 10+
- ✓ Node.js 14+
Bundle Sizes
Scope functions: 120 bytes gzipped
Sequences: 2KB gzipped
Flow: 4KB gzipped
Coroutines: 3KB gzipped
Monads: 1.5KB gzipped
Collections: 8KB gzipped