mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
203 B
TypeScript
9 lines
203 B
TypeScript
import * as fs from 'mem-fs';
|
|
|
|
const store: fs.Store = fs.create();
|
|
const file = store.get('hello');
|
|
|
|
const file2 = store.add(file)
|
|
.each(file => console.dir(store.get(file.path)))
|
|
.get('test');
|