@opra/common
Version:
Opra common package
17 lines (16 loc) • 745 B
TypeScript
import type { Class, Type } from 'ts-gems';
import type { DataType } from './data-type.js';
/**
* Create a new MappedType that omits given fields from base type
* @param baseType
* @param keys
* @param options
*/
export declare function OmitType<Args extends any[], Instance, Static, K extends keyof Instance>(baseType: Class<Args, Instance, Static>, keys: readonly K[], options?: DataType.Options): Class<Args, Omit<Instance, K>> & Omit<Pick<Static, keyof typeof baseType>, 'prototype' | 'constructor'>;
/**
* Create a new MappedType that omits given fields from base type
* @param baseType
* @param keys
* @param options
*/
export declare function OmitType(baseType: string | Type, keys: string[], options?: DataType.Options): Type;