global.d.ts
// Returns the optional keys of T as a union of string literals
declare type OptionalKeys<T> = Exclude<
{
[K in keyof T]: T extends Record<K, T[K]> ? never : K;
}[keyof T],
undefined
>;
global.d.ts
// Returns the optional keys of T as a union of string literals
declare type OptionalKeys<T> = Exclude<
{
[K in keyof T]: T extends Record<K, T[K]> ? never : K;
}[keyof T],
undefined
>;
For all the examples we will use origin
as the remote name, but this applies to other remotes as well.
git checkout -b {new-branch-name}
git checkout {branch-name}