rename load to read
This commit is contained in:
parent
0a4426ebbc
commit
e059b85581
3 changed files with 4 additions and 4 deletions
|
@ -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())
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue