Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported "managed" storage type #99

Open
DamienCassou opened this issue Nov 19, 2023 · 0 comments
Open

Unsupported "managed" storage type #99

DamienCassou opened this issue Nov 19, 2023 · 0 comments

Comments

@DamienCassou
Copy link

DamienCassou commented Nov 19, 2023

There doesn't seem to be any "managed" property on browser.storage. The code says it is "unsupported":

declare namespace browser.storage {
  "...";
  const sync: StorageArea;
  const local: StorageArea;
  // unsupported: const managed: StorageArea;

  type ChangeDict = { [field: string]: StorageChange };
  type StorageName = "sync" | "local" /* |"managed" */;
}

Why is "managed" not supported?

For reference, here is the error message I get when trying to use it:

[tsl] ERROR in /.../src/background.ts(61,48)
      TS2339: Property 'managed' does not exist on type 'typeof storage'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant