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) {
child.execSync('./node_modules/.bin/tsc -b --watch', { stdio: 'inherit' });
} else {
let result;
try {
result = child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
} catch (e) {
result = child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
}
child.execSync('cd packages/hydrooj && yarn build', { stdio: 'inherit' });
child.execSync('./node_modules/.bin/tsc -b', { stdio: 'inherit' });
}

@ -12,7 +12,7 @@
"jest": "node build/jest",
"debug": "node --async-stack-traces --trace-deprecation --enable-source-maps build/start --debug",
"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",
"license": "AGPL-3.0-only",
@ -41,4 +41,4 @@
"fs-extra": "^9.0.1",
"yargs": "^16.0.3"
}
}
}

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

Loading…
Cancel
Save