feat: steps system metadata

This commit is contained in:
Andrew Bastin
2021-12-23 15:25:15 +05:30
parent 5175a86145
commit 8ac38d7517
2 changed files with 52 additions and 15 deletions

View File

@@ -7,7 +7,14 @@ import { translateToNewRESTCollection } from "~/newstore/collections"
export default defineImporter({
name: "Hoppscotch REST Collection",
steps: [step("FILE_OR_URL_IMPORT", "Select a file or URL")] as const,
steps: [
step({
stepName: "FILE_OR_URL_IMPORT",
metadata: {
acceptedFileTypes: ["application/json"],
},
}),
] as const,
importer: ([content]) =>
pipe(
E.tryCatch(