Browse Source

feat: add Omissible utility type to schematics

pull/5137/head
Arman Ozak 6 years ago
parent
commit
325c02dfe2
  1. 1
      npm/ng-packs/packages/schematics/src/models/index.ts
  2. 2
      npm/ng-packs/packages/schematics/src/models/util.ts

1
npm/ng-packs/packages/schematics/src/models/index.ts

@ -1,2 +1,3 @@
export * from './api-definition';
export * from './project';
export * from './util';

2
npm/ng-packs/packages/schematics/src/models/util.ts

@ -0,0 +1,2 @@
// Omissible (given keys will become optional)
export type Omissible<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
Loading…
Cancel
Save