Skip to content

chore-dev/utility-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

61796bd · May 8, 2024

History

8 Commits
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024

Repository files navigation

Utility Types

Collection of utility types

Table of Contents

Installation

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

Usage

Using DeepGetType as an example:

import {DeepGetType} from '@chore-dev/utility-types';

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

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

Documentation

See documentation for more details.