跳到主要内容

DEVTOOLS_OPERATION_REQUIRED_CAPABILITY

const DEVTOOLS_OPERATION_REQUIRED_CAPABILITY: object;

Defined in: v2/authorization.ts:70

每个操作所需的最低档位。

Type Declaration​

database​

readonly database: object;

database.create-branch​

readonly create-branch: "full" = 'full';

database.delete-branch​

readonly delete-branch: "full" = 'full';

database.events​

readonly events: "readonly" = 'readonly';

database.get-branches​

readonly get-branches: "readonly" = 'readonly';

database.inspect​

readonly inspect: "readonly" = 'readonly';

database.query​

readonly query: "readonly" = 'readonly';

database.switch-branch​

readonly switch-branch: "full" = 'full';

files​

readonly files: object;

files.create-directory​

readonly create-directory: "full" = 'full';

files.delete​

readonly delete: "full" = 'full';

files.download​

readonly download: "readonly" = 'readonly';

files.list​

readonly list: "readonly" = 'readonly';

files.upload​

readonly upload: "full" = 'full';

settings​

readonly settings: object;

settings.clear​

readonly clear: "full" = 'full';

settings.export​

readonly export: "readonly" = 'readonly';

Remarks​

full 档恰好等于「会改变持久状态」的那一组,因此 isMutatingOperation 直接由本表 推导,而不是另立一张写操作清单——两张必须保持一致的清单迟早会漂移,且漂移的表现是某个写 操作悄悄绕过 mutationPolicy。

settings.export 留在 readonly:它不触碰任何状态,且当前恒返回 export_unsupported。