t-comm
Version:
专业、稳定、纯粹的工具库
15 lines (14 loc) • 346 B
TypeScript
/// <reference types="node" />
import type * as fsModule from 'fs';
/**
* 获取 fs 模块
* @returns fs 模块
* @description 仅在 Node.js 环境中可用
* @example
* ```ts
* import { getFs } from 't-comm';
* const fs = getFs();
* fs.readFileSync('path/to/file', 'utf-8');
* ```
*/
export declare function getFs(): typeof fsModule;