UNPKG

moysklad-api-model

Version:

Объектная модель API МойСклад для TypeScript проектов

13 lines (12 loc) 499 B
import type { EntityByMetaType, MetaType } from './model'; export declare function isType<T extends MetaType>(metaType: T, entity: unknown): entity is EntityByMetaType[T]; /** * Значения могут быть `null`, но не могут быть `undefined` */ export type NullablePartial<T> = { [P in keyof T]: T[P] | null; }; /** Значения могут быть `null` и `undefined` */ export type OptionalNullablePartial<T> = { [P in keyof T]?: T[P] | undefined | null; };