UNPKG

contensis-management-api

Version:

Client for managing content using the Contensis Management API

6 lines (4 loc) 260 B
// Make specific members of an object optional and union the others export type Optional<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> & Pick<Partial<T>, K>; export const isString = (value: unknown): value is string => typeof value === 'string'