2.0.8 • Published 2 years ago
@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-typesUsage
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'>; // stringDocumentation
See documentation for more details.