update interface

pull/15/head
undefined 4 years ago
parent 03d199fe9d
commit aa93512298

@ -64,10 +64,6 @@ fs.writeFileSync(path.resolve(process.cwd(), 'tsconfig.json'), JSON.stringify(co
if (argv.watch) { if (argv.watch) {
child.execSync('./node_modules/.bin/tsc -b --watch', { stdio: 'inherit' }); child.execSync('./node_modules/.bin/tsc -b --watch', { stdio: 'inherit' });
} else { } else {
let result; child.execSync('cd packages/hydrooj && yarn build', { stdio: 'inherit' });
try { child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
result = child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
} catch (e) {
result = child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
}
} }

@ -12,7 +12,7 @@
"jest": "node build/jest", "jest": "node build/jest",
"debug": "node --async-stack-traces --trace-deprecation --enable-source-maps build/start --debug", "debug": "node --async-stack-traces --trace-deprecation --enable-source-maps build/start --debug",
"start": "node build/start", "start": "node build/start",
"clean": "zsh -c \"rm -r tsconfig.build.tsbuildinfo ./packages/*/tsconfig.tsbuildinfo ./packages/*/dist ./.coverage\"" "clean": "zsh -c \"rm -rf tsconfig.build.tsbuildinfo ./packages/*/tsconfig.tsbuildinfo ./packages/*/dist ./.coverage\""
}, },
"version": "1.0.0", "version": "1.0.0",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
@ -41,4 +41,4 @@
"fs-extra": "^9.0.1", "fs-extra": "^9.0.1",
"yargs": "^16.0.3" "yargs": "^16.0.3"
} }
} }

@ -76,8 +76,8 @@ export interface User extends Dictionary<any> {
role: string, role: string,
regip: () => string, regip: () => string,
loginip: () => string, loginip: () => string,
hasPerm: (perm: bigint) => boolean, hasPerm: (...perm: bigint[]) => boolean,
hasPriv: (priv: number) => boolean, hasPriv: (...priv: number[]) => boolean,
checkPassword: (password: string) => void, checkPassword: (password: string) => void,
} }

Loading…
Cancel
Save