mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #19816 from overleaf/jpa-type-tweaks
[web] minor typescript tweaks GitOrigin-RevId: df459d2c00652a3d183cae123f39a01dd17c7ec6
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
export type Nullable<T> = T | null
|
||||
|
||||
// eslint-disable-next-line no-use-before-define, @typescript-eslint/no-empty-interface
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface DeepReadonlyArray<T> extends ReadonlyArray<DeepReadonly<T>> {}
|
||||
|
||||
type DeepReadonlyObject<T> = {
|
||||
readonly [P in keyof T]: DeepReadonly<T[P]> // eslint-disable-line no-use-before-define
|
||||
readonly [P in keyof T]: DeepReadonly<T[P]>
|
||||
}
|
||||
|
||||
export type DeepReadonly<T> = T extends (infer R)[]
|
||||
|
||||
Reference in New Issue
Block a user