mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Adds a permissions array to PluginDeclaration, a type-level Permissions registry that plugins extend with module augmentation, and registerPluginPermissions() called from all entrypoints. checkPermission and the web UI hasPermission helpers now take PermissionName so typos are compile errors. Core definitions move into a corePermissions array that the interface derives its keys from. Closes #987 Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
14 lines
349 B
JSON
14 lines
349 B
JSON
{
|
|
"extends": "./tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"lib": ["dom", "es2023"],
|
|
"module": "es2022",
|
|
"moduleResolution": "bundler",
|
|
"target": "es2022",
|
|
"jsx": "react-jsx",
|
|
"noEmitOnError": true,
|
|
"outDir": "${configDir}/dist/browser",
|
|
},
|
|
"include": [ "web/**/*.tsx", "web/**/*.ts", "index.ts", "messages.ts", "package.json" ],
|
|
}
|