New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@code-workers.io/ts-types

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-workers.io/ts-types

Typescript utility types

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

@code-workers.io/ts-types

A collection of TypeScript utitlty types to make your life easier.

Installation

npm i @code-workers.io/ts-types

Usage

import {KeyOf} from '@code-workers.io/ts-types';

type MyType = {
  foo: string;
  bar: number;
};

const property = KeyOf<MyType>; // 'foo'

Available Types

  • KeyOf: get the keys of an type as string literal
  • Nullable: shorthand for T | null
  • Optional: shorthand for T | null | undefined

strict-types

A utility library for strict TypeScript applications.

In strict mode you commonly have union types for variables which usually consists of type | undefined |null, where type is e.g. string.

This library is providing for each primitive data type a strict type:

  • StrictString
  • StrictNumber
  • StrictBoolean
  • StrictArray
  • StrictObject

Keywords

code-workers

FAQs

Package last updated on 24 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts