feat: rest revamp (#2918)
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com> Co-authored-by: Nivedin <53208152+nivedin@users.noreply.github.com> Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { EnvironmentsPlatformDef } from "./environments"
|
||||
import { CollectionsPlatformDef } from "./collections"
|
||||
import { SettingsPlatformDef } from "./settings"
|
||||
import { HistoryPlatformDef } from "./history"
|
||||
import { TabStatePlatformDef } from "./tab"
|
||||
|
||||
export type PlatformDef = {
|
||||
ui?: UIPlatformDef
|
||||
@@ -13,6 +14,7 @@ export type PlatformDef = {
|
||||
collections: CollectionsPlatformDef
|
||||
settings: SettingsPlatformDef
|
||||
history: HistoryPlatformDef
|
||||
tabState: TabStatePlatformDef
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
10
packages/hoppscotch-common/src/platform/tab.ts
Normal file
10
packages/hoppscotch-common/src/platform/tab.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { PersistableRESTTabState } from "~/helpers/rest/tab"
|
||||
import { HoppUser } from "./auth"
|
||||
|
||||
export type TabStatePlatformDef = {
|
||||
loadTabStateFromSync: () => Promise<PersistableRESTTabState | null>
|
||||
writeCurrentTabState: (
|
||||
user: HoppUser,
|
||||
persistableTabState: PersistableRESTTabState
|
||||
) => Promise<void>
|
||||
}
|
||||
Reference in New Issue
Block a user