Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

merge.d.ts 415B

12345678910111213141516171819202122
  1. import {Except} from './except';
  2. /**
  3. Merge two types into a new type. Keys of the second type overrides keys of the first type.
  4. @example
  5. ```
  6. import {Merge} from 'type-fest';
  7. type Foo = {
  8. a: number;
  9. b: string;
  10. };
  11. type Bar = {
  12. b: number;
  13. };
  14. const ab: Merge<Foo, Bar> = {a: 1, b: 2};
  15. ```
  16. */
  17. export type Merge<FirstType, SecondType> = Except<FirstType, Extract<keyof FirstType, keyof SecondType>> & SecondType;