11 lines
361 B
TypeScript
11 lines
361 B
TypeScript
/** Process-realm lazy access to Koffi's CommonJS entry. */
|
|
|
|
import type koffi from 'koffi'
|
|
import { createLazyRequire } from '@deepseek-ai/dsh-lazy-require'
|
|
|
|
/** Koffi runtime export type. */
|
|
export type Koffi = typeof koffi
|
|
|
|
/** Load Koffi on the first Win32 native operation. */
|
|
export const requireKoffi = createLazyRequire<Koffi>('koffi', import.meta.url)
|