import type * as d from '../../declarations' ; import { FsObj } from './modules/fs' ; import fs from 'fs' ; export const patchFs = ( userSys ) => { const fsObj = fs as any as FsObj ; Object . assign ( fsObj . __sys , userSys ) ; } ;