@gtomato-web/utility-types - v2.0.8

Utility Types

Collection of utility types

Table of Contents

Installation

# npm
npm install --save-dev @gtomato-web/utility-types
# yarn
yarn add -D @gtomato-web/utility-types
# pnpm
pnpm add -D @gtomato-web/utility-types

Usage

Using DeepGetType as an example:

import {DeepGetType} from '@gtomato-web/utility-types';

type DeepObject = {
a: {
b: {
c: {
d: string;
};
};
};
};

type DeepType = DeepGetType<DeepObject, 'a.b.c.d'>; // string

Documentation

See documentation for more details.