Skip to content

Commit 74ca4f1

Browse files
committed
fix build
1 parent 9930b4d commit 74ca4f1

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/components/ModalExport.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,14 @@ class ModalExportInternal extends React.Component<ModalExportInternalProps> {
113113
}
114114

115115
async createFileHandle() : Promise<FileSystemFileHandle | null> {
116-
const pickerOpts = {
116+
const pickerOpts: SaveFilePickerOptions = {
117117
types: [
118118
{
119-
description: "Style JSON",
120-
accept: {"application/json": [".json"]},
121-
suggestedName: this.exportName(),
119+
description: "json",
120+
accept: { "application/json": [".json"] },
122121
},
123122
],
124-
excludeAcceptAllOption: true,
125-
multiple: false,
123+
suggestedName: this.exportName(),
126124
};
127125

128126
const fileHandle = await window.showSaveFilePicker(pickerOpts) as FileSystemFileHandle;

src/components/ModalOpen.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,13 @@ class ModalOpenInternal extends React.Component<ModalOpenInternalProps, ModalOpe
138138
onOpenFile = async () => {
139139
this.clearError();
140140

141-
const pickerOpts = {
141+
const pickerOpts: OpenFilePickerOptions = {
142142
types: [
143143
{
144-
description: "Style JSON",
145-
accept: {"application/json": [".json"]},
144+
description: "json",
145+
accept: { "application/json": [".json"] },
146146
},
147147
],
148-
excludeAcceptAllOption: true,
149148
multiple: false,
150149
};
151150

0 commit comments

Comments
 (0)