rename load to read

This commit is contained in:
Chris Kruining 2025-02-07 11:03:51 +11:00
parent 0a4426ebbc
commit e059b85581
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ import { filter } from "~/utilities";
interface Files extends Record<string, { handle: FileSystemFileHandle, file: File }> { }
export const load = (file: File): Promise<Map<string, string> | undefined> => {
export const read = (file: File): Promise<Map<string, string> | undefined> => {
switch (file.type) {
case 'application/json': return json.load(file.stream())

View file

@ -1,5 +1,5 @@
export { load, readFiles } from './helpers';
export { read, readFiles } from './helpers';
export { useFiles, FilesProvider } from './context';
export { Grid } from './grid';
export { TreeProvider, Tree, useTree } from './tree';