type TypeName<T, U> = {
[P in keyof T]: P extends keyof U ? U[P] : T[P]
}
type MoldsToBeRepressed = {
typeaName?: boolean
}
type ReplaceType = TypeName<
リプレス元,
{ typeaName?: MoldsToBeRepressed }
>
Go to list of users who liked
More than 1 year has passed since last update.
type TypeName<T, U> = {
[P in keyof T]: P extends keyof U ? U[P] : T[P]
}
type MoldsToBeRepressed = {
typeaName?: boolean
}
type ReplaceType = TypeName<
リプレス元,
{ typeaName?: MoldsToBeRepressed }
>
Register as a new user and use Qiita more conveniently
Go to list of users who liked