Update frontend types (1).
This commit is contained in:
parent
860729c085
commit
8ee079fa43
@ -89,4 +89,4 @@
|
||||
"ts-node": "^10.4.0",
|
||||
"ts-node-dev": "^1.1.8"
|
||||
}
|
||||
}
|
||||
}
|
7
frontend/package-lock.json
generated
7
frontend/package-lock.json
generated
@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "@acrd/frontend",
|
||||
"version": "0.0.0",
|
||||
"version": "0.6.0-pre-release",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@acrd/frontend",
|
||||
"version": "0.0.0",
|
||||
"version": "0.6.0-pre-release",
|
||||
"dependencies": {
|
||||
"@acrd/types": "file:src/types",
|
||||
"@acrd/types": "file:./src/types",
|
||||
"@craco/craco": "^5.9.0",
|
||||
"@dvhb/craco-extend-scope": "^1.0.1",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
||||
@ -22611,6 +22611,7 @@
|
||||
"integrity": "sha512-LLHANmdm53+MucY9aOFIggzYtUdkSBFxUsy4glTTQYNyK6B3uCPWTbfiGvSrEvLojw0mSzyFJ1/RRLv+QMNdzQ=="
|
||||
},
|
||||
"src/types": {
|
||||
"name": "@acrd/types",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"typescript": "^4.9.4"
|
||||
|
@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"homepage": "https://acrd.app/",
|
||||
"dependencies": {
|
||||
"@acrd/types": "file:src/types",
|
||||
"@acrd/types": "file:./src/types",
|
||||
"@craco/craco": "^5.9.0",
|
||||
"@dvhb/craco-extend-scope": "^1.0.1",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
||||
|
@ -14,6 +14,7 @@ import { initPings } from '../store/pings';
|
||||
import VerifyPage from './pages/auth/verify-page';
|
||||
import InvitePage from './pages/invite-page';
|
||||
import ThemePage from './pages/theme-page';
|
||||
import '../types/src/permissions.types';
|
||||
|
||||
export default function App() {
|
||||
const dispatch = useDispatch();
|
||||
|
16
frontend/src/types/lib/permissions.types.d.ts
vendored
16
frontend/src/types/lib/permissions.types.d.ts
vendored
@ -23,14 +23,14 @@ export declare namespace PermissionTypes {
|
||||
}
|
||||
const All: {
|
||||
[x: number]: string;
|
||||
MOVE_MEMBERS: Voice.MOVE_MEMBERS;
|
||||
MUTE_MEMBERS: Voice.MUTE_MEMBERS;
|
||||
SPEAK: Voice.SPEAK;
|
||||
CONNECT: Voice.CONNECT;
|
||||
SEND_FILES: Text.SEND_FILES;
|
||||
READ_MESSAGES: Text.READ_MESSAGES;
|
||||
MANAGE_MESSAGES: Text.MANAGE_MESSAGES;
|
||||
SEND_MESSAGES: Text.SEND_MESSAGES;
|
||||
MOVE_MEMBERS: Voice;
|
||||
MUTE_MEMBERS: Voice;
|
||||
SPEAK: Voice;
|
||||
CONNECT: Voice;
|
||||
SEND_FILES: Text;
|
||||
READ_MESSAGES: Text;
|
||||
MANAGE_MESSAGES: Text;
|
||||
SEND_MESSAGES: Text;
|
||||
VIEW_CHANNELS: General.VIEW_CHANNELS;
|
||||
MANAGE_INVITES: General.MANAGE_INVITES;
|
||||
CREATE_INVITE: General.CREATE_INVITE;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@acrd/types",
|
||||
"main": "lib/main.js",
|
||||
"main": "./lib/main.js",
|
||||
"scripts": {
|
||||
"preinstall": "tsc"
|
||||
},
|
||||
|
@ -11,6 +11,7 @@
|
||||
"esModuleInterop": true,
|
||||
"noImplicitAny": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"preserveConstEnums": true,
|
||||
"strict": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user