refactor: Rename browser-nativefs to browser-fs-access (#2862)

This commit is contained in:
Thomas Steiner 2021-01-27 19:47:55 +01:00 committed by GitHub
parent 4392a4644a
commit b5e26ba81f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,4 @@
import { fileSave } from "browser-nativefs";
import { fileSave } from "browser-fs-access";
import {
copyCanvasToClipboardAsPng,
copyTextToSystemClipboard,

View file

@ -1,4 +1,4 @@
import { fileOpen, fileSave } from "browser-nativefs";
import { fileOpen, fileSave } from "browser-fs-access";
import { cleanAppStateForExport } from "../appState";
import { MIME_TYPES } from "../constants";
import { clearElementsForExport } from "../element";

2
src/global.d.ts vendored
View file

@ -85,6 +85,6 @@ type ForwardRef<T, P = any> = Parameters<
// --------------------------------------------------------------------------—
interface Blob {
handle?: import("browser-nativefs").FileSystemHandle;
handle?: import("browser-fs-acces").FileSystemHandle;
name?: string;
}

View file

@ -98,7 +98,7 @@ export type AppState = {
offsetLeft: number;
isLibraryOpen: boolean;
fileHandle: import("browser-nativefs").FileSystemHandle | null;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map<string, Collaborator>;
showStats: boolean;
currentChartType: ChartType;