API Reference

Complete reference for all functions, types, and modules

Modules

Installation

npm install kotlinify-ts

Or with yarn:

yarn add kotlinify-ts

Import 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

Next Steps