MCPcopy Index your code
hub / github.com/bytebase/bytebase / withScope

Function withScope

frontend/src/utils/storage-keys.ts:20–21  ·  view source on GitHub ↗
(base: string, scope: string, ...rest: string[])

Source from the content-addressed store, hash-verified

18// email-change migration (migrateUserStorage, renames by `.{email}` suffix)
19// keeps working.
20const withScope = (base: string, scope: string, ...rest: string[]): string =>
21 [base, ...(scope ? [scope] : []), ...rest].join(".");
22
23// --- Global (no user scope) ---
24export const STORAGE_KEY_BACK_PATH = "bb.back-path";

Calls

no outgoing calls

Tested by

no test coverage detected