mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 16:06:33 -05:00
[web] Fix main branch linting error (#21749)
* Sync package-lock I get this change when running `make install && bin/npm i` * Add `featureUsage` to LoggedOutUser keys We might want to change this to something like this: ``` export type NullifyProperties<T> = { [P in keyof T]: undefined } export type LoggedOutUser = { id: null } & NullifyProperties<Omit<User, 'id'>> ``` * Revert "Sync package-lock" This reverts commit 982466eba3f8d72a388d248b66658be0350b2d09. * Remove `canceledSubscription` types for now This is breaking the build at the moment. We can work on creating a `Request` that matches our usages of it GitOrigin-RevId: bb21baba6a074c2169af786a9e56b33beddddd2f
This commit is contained in:
parent
7f48c67512
commit
5821dc7273
2 changed files with 1 additions and 3 deletions
|
@ -457,9 +457,6 @@ function cancelSubscription(req, res, next) {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {import('express').Request} req
|
||||
* @param {import('express').Response} res
|
||||
* @param {import('express').NextFunction} next
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function canceledSubscription(req, res, next) {
|
||||
|
|
|
@ -68,6 +68,7 @@ export type LoggedOutUser = {
|
|||
refProviders?: undefined
|
||||
writefull?: undefined
|
||||
isAdmin?: undefined
|
||||
featureUsage?: undefined
|
||||
}
|
||||
|
||||
export type MongoUser = Pick<User, Exclude<keyof User, 'id'>> & { _id: string }
|
||||
|
|
Loading…
Reference in a new issue