refactor: migrate to nuxt compatibilityVersion: 4 (#3298)
This commit is contained in:
parent
46e4433e1c
commit
a3fbc056a9
342 changed files with 1200 additions and 2932 deletions
8
shared/types/utils.ts
Normal file
8
shared/types/utils.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export type Mutable<T> = {
|
||||
-readonly[P in keyof T]: T[P]
|
||||
}
|
||||
|
||||
export type Overwrite<T, O> = Omit<T, keyof O> & O
|
||||
export type MarkNonNullable<T, K extends keyof T> = Overwrite<T, {
|
||||
[P in K]-?: NonNullable<T[P]>
|
||||
}>
|
Loading…
Add table
Add a link
Reference in a new issue