/
githubmirror
/
tldraw
Обзор
Документация
Войти
/
githubmirror
/
tldraw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/dotcom-shared/src/capabilities.ts
13 строк
617 B
Kevin Ingersoll
feat(dotcom): rework the manage workspace dialog (#9168)
17 июн 2026, 16:28
Не верифицирован
17 июн 2026, 16:28
abfa9f5
Код
Авторство
О чём код?
/** * Every capability — a single thing someone can do in a workspace. Exported as a * runtime list so all capabilities can be enumerated; the {@link Capability} * type is derived from it. Roles grant subsets of these — see `roles.ts`. */ export const capabilities = [ 'accessFiles', // open and edit the workspace's files (any member) 'addFiles', // move a file into the workspace 'removeFiles', // remove a file from the workspace 'manageWorkspace', // manage the workspace: its invite link, members' roles, name, and deletion (owners) ] as const export type Capability = (typeof capabilities)[number]