@esfx/type-model

Utility types for TypeScript.

@esfx/type-model

The @esfx/type-model package provides a number of utility types for TypeScript.

Overview Installation
npm i @esfx/type-model
Usage
// TypeScript
import { Diff } from "@esfx/type-model";

type A = { x: number, y: string };
type B = { x: number };
type C = Diff<A, B>; // { y: string }
API

You can read more about the API here.

Repository

https://github.com/esfx/esfx.git


上一篇:custom-guider
下一篇:p-promise

相关推荐

  • @types/type-is

    TypeScript definitions for type-is Installation npm install --save @types/type-is Summary This pac...

    1 年前
  • @types/prosemirror-model

    TypeScript definitions for prosemirror-model Installation npm install --save @types/prosemirror-mod...

    8 个月前
  • @types/file-type

    Stub TypeScript definitions entry for file-type, which provides its own types definitions This is a ...

    1 年前
  • @types/type-detect

    TypeScript definitions for type-detect Installation npm install --save @types/type-detect Summary ...

    6 个月前
  • @types/trusted-types

    TypeScript definitions for trusted-types Installation npm install --save @types/trusted-types Summ...

    6 个月前
  • @types/mime-types

    TypeScript definitions for mime-types Installation npm install --save @types/mime-types Summary Th...

    1 年前
  • @types/type-name

    TypeScript definitions for type-name v1.0.1 Installation npm install --save @types/type-name Summa...

    10 个月前
  • @types/pg-types

    TypeScript definitions for pg-types Installation npm install --save @types/pg-types Summary This p...

    10 个月前
  • @types/prop-types

    TypeScript definitions for prop-types Installation npm install --save @types/prop-types Summary Th...

    1 年前
  • @types/content-type

    TypeScript definitions for content-type Installation npm install --save @types/content-type Summar...

    1 年前

公众号

欢迎 JavaScript 爱好者